update mongo db for better name/ip
This commit is contained in:
parent
2cba581cb3
commit
c863e58df3
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue