services: postgres: image: registry.jerryyan.top/library/postgres:18 environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - postgres-data:/var/lib/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] interval: 5s timeout: 5s retries: 12 restart: unless-stopped cloud-api: image: git.jerryyan.net/q792602257/agentic-mobile-control:${IMAGE_TAG:-latest} command: - sh - -c - >- alembic -c packages/cloud-platform/cloud/migrations/alembic.ini upgrade head && exec device-cloud-api --host 0.0.0.0 --port 8001 environment: CLOUD_ENVIRONMENT: production CLOUD_DATABASE_URL: postgresql+psycopg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB} CLOUD_TRUST_PROXY_HEADERS: ${CLOUD_TRUST_PROXY_HEADERS:-false} CLOUD_LLM_PROVIDER_ENCRYPTION_KEY: ${CLOUD_LLM_PROVIDER_ENCRYPTION_KEY} ports: - "${CLOUD_API_PORT:-8001}:8001" depends_on: postgres: condition: service_healthy healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8001/health/ready"] interval: 5s timeout: 3s retries: 12 restart: unless-stopped volumes: postgres-data: