Updated the backend docker compose file and also added dockercompose for mongo and mongo express
This commit is contained in:
35
db/docker-compose.yml
Normal file
35
db/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
|
||||
mongo:
|
||||
image: mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: "jutsujen"
|
||||
MONGO_INITDB_ROOT_PASSWORD: "fa!ry-Ta!l"
|
||||
networks:
|
||||
- backend_network
|
||||
|
||||
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
|
||||
ME_CONFIG_MONGODB_SERVER: "mongo"
|
||||
ME_CONFIG_MONGODB_PORT: "27017"
|
||||
ME_CONFIG_MONGODB_AUTH_USERNAME: "jutsujen"
|
||||
ME_CONFIG_MONGODB_AUTH_PASSWORD: "fa!ry-Ta!l"
|
||||
ME_CONFIG_MONGODB_AUTH_SOURCE: admin
|
||||
ME_CONFIG_BASICAUTH: false
|
||||
networks:
|
||||
- backend_network
|
||||
|
||||
|
||||
networks:
|
||||
backend_network:
|
||||
name: backend-network
|
||||
driver: bridge
|
||||
32
db/docker-compose.yml.bkp
Normal file
32
db/docker-compose.yml.bkp
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
|
||||
mongo:
|
||||
image: mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: jutsujen
|
||||
MONGO_INITDB_ROOT_PASSWORD: f@!ry-Ta!l
|
||||
networks:
|
||||
- backend_network
|
||||
|
||||
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: jutsujen
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: f@!ry-Ta!l
|
||||
ME_CONFIG_MONGODB_URL: mongodb://jutsujen:f@!ry-Ta!l@db-mongo-1:27017/
|
||||
ME_CONFIG_BASICAUTH: false
|
||||
networks:
|
||||
- backend_network
|
||||
|
||||
|
||||
networks:
|
||||
backend_network:
|
||||
name: backend-network
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user