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: services:
komodo_postgres: komodo_db:
container_name: komodo_postgres container_name: komodo_db
image: ghcr.io/ferretdb/postgres-documentdb:17-0.104.0 image: ghcr.io/ferretdb/postgres-documentdb:17-0.106.0-ferretdb-2.5.0
restart: unless-stopped restart: unless-stopped
labels: labels:
komodo.skip: komodo.skip:
environment: environment:
POSTGRES_DB: postgres - POSTGRES_USER=${POSTGRES_USER}
POSTGRES_USER: ${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB}
volumes: volumes:
- ./postgres:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres -U ${POSTGRES_USER}"] test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
start_period: 20s interval: 10s
interval: 30s
retries: 5
timeout: 5s timeout: 5s
retries: 3
start_period: 10s
komodo_ferretdb: komodo_ferretdb:
container_name: 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 restart: unless-stopped
labels: labels:
komodo.skip: komodo.skip:
depends_on: depends_on:
komodo_postgres: komodo_db:
condition: service_healthy condition: service_healthy
environment: 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: volumes:
- ./ferretdb:/state - ./ferretdb:/state
@@ -42,11 +42,20 @@ services:
komodo_ferretdb: komodo_ferretdb:
condition: service_healthy condition: service_healthy
environment: environment:
KOMODO_DATABASE_ADDRESS: komodo_ferretdb:27017 - KOMODO_DATABASE_URI=mongodb://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_ferretdb:27017
KOMODO_DATABASE_USERNAME: ${POSTGRES_USER}
KOMODO_DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
volumes: volumes:
- ./config.toml:/config/config.toml - ./config.toml:/config/config.toml
- ./repo-cache:/repo-cache - ./repo-cache:/repo-cache
ports: ports:
- 9120:9120 - 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