update mongo db for better name/ip

This commit is contained in:
admin 2026-02-02 13:46:17 -07:00
parent 2cba581cb3
commit c863e58df3

View file

@ -2,10 +2,14 @@
services: services:
komodo-mongo: komodo-mongo:
image: mongo:7.0 image: mongo:7.0
container_name: ${KOMODO_DB_HOSTNAME} container_name: mongo_db${KOMODO_NODE_ID}
hostname: mongo_db${KOMODO_NODE_ID}
restart: always restart: always
networks: networks:
- komodo_internal - komodo_internal
extra_hosts:
- "mongo_db1:${KOMODO_DB_PRI}"
- "mongo_db2:${KOMODO_DB_SEC}"
command: ["--replSet", "rs${LXC_NUM}", "--bind_ip_all", "--port", "27017"] command: ["--replSet", "rs${LXC_NUM}", "--bind_ip_all", "--port", "27017"]
volumes: volumes:
- /docker/mongo:/data/db - /docker/mongo:/data/db