zkt22/z1/docker-compose.yaml

35 lines
737 B
YAML
Raw Permalink Normal View History

2022-03-19 14:55:19 +00:00
version: '3'
services:
mongodb:
image: mongo
networks:
- mongo-network
container_name: mongodb
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
volumes:
- mongo_data:/data/db
mongo-express:
image: mongo-express
networks:
- mongo-network
container_name: mongo-express
restart: always
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=admin
- ME_CONFIG_MONGODB_SERVER=mongodb
volumes:
mongo_data:
driver: local
name: mongo-db-data
networks:
mongo-network:
name: mongo-network-zct