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.

47 lines
1.2 KiB

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}
4 years ago
swlabadminvenus:
hostname: 'swlabadminvenus'
4 years ago
container_name: 'swlabadminvenus'
4 years ago
image: 'hub.swarmlab.io:5480/venus-admin:latest'
entrypoint: /bin/bash -c "tail -f /dev/null"
user: root
network_mode: host
cap_add:
- NET_ADMIN
- SYS_MODULE
volumes:
- ${VENUSADMIN}:/config
- /lib/modules:/lib/modules
volumes:
swlabmongovenusData:
swlabmongovenusLog:
networks:
netswlabmongovenusLocal: