Update komodo

This commit is contained in:
2025-08-15 18:42:15 +05:30
parent 037b9aae37
commit d39be3cb50

View File

@@ -1,34 +1,34 @@
services:
komodo_postgres:
container_name: komodo_postgres
image: ghcr.io/ferretdb/postgres-documentdb:17-0.104.0
komodo_db:
container_name: komodo_db
image: ghcr.io/ferretdb/postgres-documentdb:17-0.106.0-ferretdb-2.5.0
restart: unless-stopped
labels:
komodo.skip:
environment:
POSTGRES_DB: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./postgres:/var/lib/postgresql/data
- ./db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres -U ${POSTGRES_USER}"]
start_period: 20s
interval: 30s
retries: 5
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
komodo_ferretdb:
container_name: komodo_ferretdb
image: ghcr.io/ferretdb/ferretdb:2.3.1
image: ghcr.io/ferretdb/ferretdb:2.5.0
restart: unless-stopped
labels:
komodo.skip:
depends_on:
komodo_postgres:
komodo_db:
condition: service_healthy
environment:
FERRETDB_POSTGRESQL_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_postgres:5432/postgres
- FERRETDB_POSTGRESQL_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_db:5432/${POSTGRES_DB}
volumes:
- ./ferretdb:/state
@@ -42,11 +42,20 @@ services:
komodo_ferretdb:
condition: service_healthy
environment:
KOMODO_DATABASE_ADDRESS: komodo_ferretdb:27017
KOMODO_DATABASE_USERNAME: ${POSTGRES_USER}
KOMODO_DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
- KOMODO_DATABASE_URI=mongodb://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_ferretdb:27017
volumes:
- ./config.toml:/config/config.toml
- ./repo-cache:/repo-cache
ports:
- 9120:9120
komodo_periphery:
container_name: komodo_periphery
image: ghcr.io/moghtech/komodo-periphery:1.18.4
restart: unless-stopped
labels:
komodo.skip:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/proc
- ${PERIPHERY_ROOT_DIRECTORY}:${PERIPHERY_ROOT_DIRECTORY} #Change me