registration-js-vanilla/infra/docker-compose.yaml
2023-09-11 14:13:41 +03:00

26 lines
546 B
YAML

version: '3.8'
services:
mongodb:
image: arm64v8/mongo:4.0
restart: always
environment:
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
ports:
- "27017:27017"
volumes:
- mongodb-vol:/data/db
- ./init.js:/docker-entrypoint-initdb.d/mongo-init.js
networks:
- mynetwork
expose:
- 27017
networks:
mynetwork:
driver: bridge
volumes:
mongodb-vol: