Files
docker-compose/komodo/docker-compose.yml
T

83 lines
2.1 KiB
YAML
Raw Normal View History

2025-06-28 22:28:15 +05:30
services:
2025-08-15 18:42:15 +05:30
komodo_db:
container_name: komodo_db
image: ghcr.io/ferretdb/postgres-documentdb:17-0.106.0-ferretdb-2.5.0
2025-08-15 16:54:19 +05:30
restart: unless-stopped
2025-06-28 22:28:15 +05:30
labels:
komodo.skip:
environment:
2025-08-15 18:42:15 +05:30
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
2025-08-15 20:04:46 +05:30
- POSTGRES_DB=postgres
2025-06-28 22:28:15 +05:30
volumes:
2025-08-15 18:42:15 +05:30
- ./db:/var/lib/postgresql/data
2025-08-15 18:52:47 +05:30
networks:
- backend
2025-06-28 23:31:45 +05:30
healthcheck:
2025-08-15 20:04:46 +05:30
test: ["CMD-SHELL", "pg_isready -d postgres -U ${POSTGRES_USER}"]
2025-08-15 18:42:15 +05:30
interval: 10s
2025-06-28 23:31:45 +05:30
timeout: 5s
2025-08-15 18:42:15 +05:30
retries: 3
start_period: 10s
2025-06-28 22:28:15 +05:30
komodo_ferretdb:
container_name: komodo_ferretdb
2025-08-15 18:42:15 +05:30
image: ghcr.io/ferretdb/ferretdb:2.5.0
2025-08-15 16:54:19 +05:30
restart: unless-stopped
2025-06-28 22:28:15 +05:30
labels:
komodo.skip:
depends_on:
2025-08-15 18:42:15 +05:30
komodo_db:
2025-06-28 23:31:45 +05:30
condition: service_healthy
2025-06-28 22:28:15 +05:30
environment:
2025-08-15 20:04:46 +05:30
- FERRETDB_POSTGRESQL_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_db:5432/postgres
2025-06-28 22:28:15 +05:30
volumes:
- ./ferretdb:/state
2025-08-15 18:52:47 +05:30
networks:
- backend
2025-06-28 22:28:15 +05:30
komodo_core:
container_name: komodo_core
2025-08-15 16:54:19 +05:30
image: ghcr.io/moghtech/komodo-core:1.18.4
restart: unless-stopped
2025-06-28 22:28:15 +05:30
labels:
komodo.skip:
depends_on:
2025-06-28 23:31:45 +05:30
komodo_ferretdb:
condition: service_healthy
2025-06-28 22:28:15 +05:30
environment:
2025-08-15 18:42:15 +05:30
- KOMODO_DATABASE_URI=mongodb://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_ferretdb:27017
2025-06-28 22:28:15 +05:30
volumes:
2025-08-15 20:04:46 +05:30
- ./core.config.toml:/config/config.toml
- ./syncs:/syncs
- ./action-cache:/action-cache
2025-06-28 22:28:15 +05:30
- ./repo-cache:/repo-cache
ports:
2025-08-16 12:29:26 +05:30
- ${CORE_PORT}:9120
2025-08-15 18:52:47 +05:30
networks:
- frontend
- backend
2025-08-15 18:42:15 +05:30
komodo_periphery:
container_name: komodo_periphery
image: ghcr.io/moghtech/komodo-periphery:1.18.4
restart: unless-stopped
2025-08-15 22:16:35 +05:30
hostname: ${HOSTNAME}
2025-08-15 18:42:15 +05:30
labels:
komodo.skip:
2025-08-15 20:04:46 +05:30
command: periphery --config-path ${PERIPHERY_ROOT_DIRECTORY}/periphery.config.toml
2025-08-15 18:42:15 +05:30
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/proc
2025-08-15 20:04:46 +05:30
- ${PERIPHERY_ROOT_DIRECTORY}:${PERIPHERY_ROOT_DIRECTORY}
2025-08-16 12:29:26 +05:30
ports:
- ${PERIPHERY_PORT}:8120
2025-08-15 18:52:47 +05:30
networks:
- backend
networks:
frontend:
external: true
backend:
external: true