Files
docker-compose/komodo/docker-compose.yml
2025-07-02 17:41:16 +05:30

53 lines
1.4 KiB
YAML

services:
komodo_postgres:
image: ghcr.io/ferretdb/postgres-documentdb:17-0.104.0
container_name: komodo_postgres
labels:
komodo.skip:
environment:
POSTGRES_DB: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./postgres:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres -U ${POSTGRES_USER}"]
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
komodo_ferretdb:
image: ghcr.io/ferretdb/ferretdb:2.3.1
container_name: komodo_ferretdb
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
restart: unless-stopped
komodo_core:
image: ghcr.io/moghtech/komodo-core:1.18.4
container_name: komodo_core
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
restart: unless-stopped