Updated the backend docker compose file and also added dockercompose for mongo and mongo express

This commit is contained in:
Md. Mosiur Rahman
2025-08-18 16:06:38 +06:00
parent 6110ab206f
commit 893a35972e
4 changed files with 74 additions and 1 deletions

32
db/docker-compose.yml.bkp Normal file
View 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