add txt file for change to mongo deploy
This commit is contained in:
parent
d7e2fcd437
commit
9063351ba6
1 changed files with 44 additions and 0 deletions
44
management/mongo-version.txt
Normal file
44
management/mongo-version.txt
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
services:
|
||||||
|
mongo:
|
||||||
|
image: mongo:7.0
|
||||||
|
container_name: mongo
|
||||||
|
restart: always
|
||||||
|
network_mode: host
|
||||||
|
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
|
||||||
|
volumes:
|
||||||
|
- /docker/management/mongodb:/data/db
|
||||||
|
|
||||||
|
komodo:
|
||||||
|
# REVERT TO MOGHTECH
|
||||||
|
image: ghcr.io/moghtech/komodo-core:latest
|
||||||
|
container_name: komodo
|
||||||
|
cpus: 2.0
|
||||||
|
mem_limit: "2048m"
|
||||||
|
mem_reservation: "512m"
|
||||||
|
network_mode: host
|
||||||
|
env_file:
|
||||||
|
- /docker/management/.env
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- /root/.ssh:/home/komodo/.ssh:ro
|
||||||
|
- /docker/management/komodo/config:/config
|
||||||
|
- /docker/management/komodo/backups:/backups
|
||||||
|
- /docker/management/komodo/core-etc:/etc/komodo
|
||||||
|
- /docker/management/komodo/var:/var/lib/komodo
|
||||||
|
- /docker/management/komodo/repo-cache:/repo-cache
|
||||||
|
- /docker:/docker
|
||||||
|
- ${REPO_ROOT}:/repo
|
||||||
|
environment:
|
||||||
|
# CHANGE TO 'URI'
|
||||||
|
# This tells Komodo: "Here is the full connection string, don't try to parse commas."
|
||||||
|
#- KOMODO_DATABASE_URI=mongodb://127.0.0.1:27017/komodo?directConnection=true&replicaSet=rs0
|
||||||
|
#- KOMODO_DATABASE_URI=mongodb://172.16.201.206:27017,172.16.201.106:27017/komodo?replicaSet=rs0
|
||||||
|
# Explicitly unset ADDRESS to avoid conflicts
|
||||||
|
- KOMODO_DATABASE_ADDRESS=
|
||||||
|
depends_on:
|
||||||
|
- mongo
|
||||||
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
- "komodo.skip=true"
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue