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.
45 lines
1.2 KiB
45 lines
1.2 KiB
version: '3.8'
|
|
|
|
services:
|
|
|
|
swlabmongovenus:
|
|
hostname: 'swlabmongovenus'
|
|
container_name: 'swlabmongovenus'
|
|
image: 'mongo:4.2'
|
|
restart: 'on-failure'
|
|
expose:
|
|
- 27017
|
|
ports:
|
|
- ${MONGO_VENUS_PORT}:27017
|
|
networks:
|
|
- netswlabmongovenusLocal
|
|
volumes:
|
|
- swlabmongovenusData:/data/db
|
|
- swlabmongovenusLog:/var/log/mongodb
|
|
- ${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}
|
|
|
|
swlabadminvenus:
|
|
hostname: 'swlabadminvenus'
|
|
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:
|
|
|