services: app: build: context: . environment: # Coolify resolves default-bearing values from production before attaching # the preview env file, so preview-overridable values stay late-bound. AGENT: ${AGENT} BACKGROUND_JOBS: ${BACKGROUND_JOBS} CONVERSATION_PLAN: ${CONVERSATION_PLAN} JEV_MODEL: ${JEV_MODEL} JEV_API_KEY: ${JEV_API_KEY} APP_ORIGIN: ${APP_ORIGIN} DATABASE_URL: postgresql://chopin:chopin@${SERVICE_NAME_DB:-db}:5432/chopin?sslmode=disable GITHUB_APP_SLUG: ${GITHUB_APP_SLUG} GITHUB_APP_CLIENT_ID: ${GITHUB_APP_CLIENT_ID} GITHUB_APP_CLIENT_SECRET: ${GITHUB_APP_CLIENT_SECRET} GITHUB_ALLOWED_USERS: ${GITHUB_ALLOWED_USERS} GITHUB_ALLOWED_ORGANIZATIONS: ${GITHUB_ALLOWED_ORGANIZATIONS} MODEL: ${MODEL} SERVICE_URL_APP_8787: SESSION_ENCRYPTION_KEY: ${SESSION_ENCRYPTION_KEY} STORAGE_DRIVER: postgres WEB_RESEARCH: ${WEB_RESEARCH} depends_on: db: condition: service_healthy expose: - "8787" restart: unless-stopped stop_grace_period: 15s db: image: postgres:17-alpine environment: POSTGRES_DB: chopin POSTGRES_USER: chopin POSTGRES_PASSWORD: chopin healthcheck: test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"] interval: 2s timeout: 3s retries: 15 volumes: - postgres-data:/var/lib/postgresql/data db-e2e: profiles: ["test"] image: postgres:17-alpine environment: POSTGRES_DB: chopin POSTGRES_USER: chopin POSTGRES_PASSWORD: chopin healthcheck: test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"] interval: 2s timeout: 3s retries: 15 tmpfs: - /var/lib/postgresql/data db-e2e-fixtures: profiles: ["test"] image: postgres:17-alpine environment: POSTGRES_DB: chopin POSTGRES_USER: chopin POSTGRES_PASSWORD: chopin healthcheck: test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"] interval: 2s timeout: 3s retries: 15 tmpfs: - /var/lib/postgresql/data db-e2e-harness: profiles: ["test"] image: postgres:17-alpine environment: POSTGRES_DB: chopin POSTGRES_USER: chopin POSTGRES_PASSWORD: chopin healthcheck: test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"] interval: 2s timeout: 3s retries: 15 tmpfs: - /var/lib/postgresql/data db-e2e-local: profiles: ["test"] image: postgres:17-alpine environment: POSTGRES_DB: chopin POSTGRES_USER: chopin POSTGRES_PASSWORD: chopin healthcheck: test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"] interval: 2s timeout: 3s retries: 15 tmpfs: - /var/lib/postgresql/data volumes: postgres-data: