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
|
||||
Reference in New Issue
Block a user