services: komodo_postgres: container_name: komodo_postgres image: ghcr.io/ferretdb/postgres-documentdb:17-0.104.0 restart: unless-stopped labels: komodo.skip: environment: POSTGRES_DB: postgres POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - ./postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -d postgres -U ${POSTGRES_USER}"] start_period: 20s interval: 30s retries: 5 timeout: 5s komodo_ferretdb: container_name: komodo_ferretdb image: ghcr.io/ferretdb/ferretdb:2.3.1 restart: unless-stopped labels: komodo.skip: depends_on: komodo_postgres: condition: service_healthy environment: FERRETDB_POSTGRESQL_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_postgres:5432/postgres volumes: - ./ferretdb:/state komodo_core: container_name: komodo_core image: ghcr.io/moghtech/komodo-core:1.18.4 restart: unless-stopped labels: komodo.skip: depends_on: komodo_ferretdb: condition: service_healthy environment: KOMODO_DATABASE_ADDRESS: komodo_ferretdb:27017 KOMODO_DATABASE_USERNAME: ${POSTGRES_USER} KOMODO_DATABASE_PASSWORD: ${POSTGRES_PASSWORD} volumes: - ./config.toml:/config/config.toml - ./repo-cache:/repo-cache ports: - 9120:9120