Files
memind/deploy/orchestrator/compose.yaml
T

48 lines
1.5 KiB
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: memind_orchestrator
POSTGRES_USER: memind_orchestrator
POSTGRES_PASSWORD: ${ORCHESTRATOR_POSTGRES_PASSWORD:?set ORCHESTRATOR_POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U memind_orchestrator -d memind_orchestrator"]
interval: 5s
timeout: 3s
retries: 20
volumes:
- orchestrator_postgres_data:/var/lib/postgresql/data
networks:
- orchestrator_internal
orchestrator:
image: memind/workflow-orchestrator:local
build:
context: ../../services/orchestrator
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
MEMIND_ORCHESTRATOR_HOST: 0.0.0.0
MEMIND_ORCHESTRATOR_PORT: 8093
MEMIND_ORCHESTRATOR_CHECKPOINT_MODE: postgres
MEMIND_ORCHESTRATOR_DATABASE_URL: postgresql://memind_orchestrator:${ORCHESTRATOR_POSTGRES_PASSWORD}@postgres:5432/memind_orchestrator
MEMIND_ORCHESTRATOR_DATABASE_SCHEMA: memind_orchestrator
MEMIND_ORCHESTRATOR_SERVICE_TOKEN: ${MEMIND_ORCHESTRATOR_SERVICE_TOKEN:?set MEMIND_ORCHESTRATOR_SERVICE_TOKEN}
ports:
- "127.0.0.1:${MEMIND_ORCHESTRATOR_PORT:-8093}:8093"
networks:
- orchestrator_internal
- orchestrator_edge
networks:
orchestrator_internal:
internal: true
orchestrator_edge:
volumes:
orchestrator_postgres_data: