You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
855 B

version: '3.8'
services:
swlabmongovenus:
hostname: 'swlabmongovenus'
container_name: 'swlabmongovenus'
image: 'mongo:4.2'
restart: 'on-failure'
expose:
- 27017
ports:
4 years ago
- ${MONGO_VENUS_PORT}:27017
networks:
- netswlabmongovenusLocal
volumes:
- swlabmongovenusData:/data/db
- swlabmongovenusLog:/var/log/mongodb
4 years ago
- ${MONGO_VENUS_CONF}:/etc/mongod.conf
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
volumes:
swlabmongovenusData:
swlabmongovenusLog:
networks:
netswlabmongovenusLocal: