bex-twn/docker-compose.yml
2022-12-06 17:47:52 +02:00

16 lines
378 B
YAML

version: '3.4'
services:
mongodb:
image: mongo:6
container_name: mongo
restart: 'no'
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: eprosperatest
MONGO_INITDB_DATABASE: nest
volumes:
- ./database:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro