bex-twn/docker-compose.yml

16 lines
378 B
YAML
Raw Normal View History

2022-12-06 09:53:52 +00:00
version: '3.4'
services:
mongodb:
image: mongo:6
container_name: mongo
2022-12-06 15:47:52 +00:00
restart: 'no'
2022-12-06 09:53:52 +00:00
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: eprosperatest
2022-12-06 12:26:39 +00:00
MONGO_INITDB_DATABASE: nest
2022-12-06 09:53:52 +00:00
volumes:
- ./database:/data/db
2022-12-06 12:26:39 +00:00
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro