Add docker-compose.yml

main
Subhodip Ghosh 2025-04-04 07:53:39 +00:00
commit 82d61ea0b1
1 changed files with 29 additions and 0 deletions

29
docker-compose.yml Normal file
View File

@ -0,0 +1,29 @@
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: mongodb
restart: always
volumes:
- mongo_data:/data/db
ports:
- "27017:27017"
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin123
depends_on:
- mongodb
volumes:
mongo_data: