# Coolify: New Resource → Docker Compose (from your Git repo) → this file. # Coolify assigns the domain + HTTPS via SERVICE_FQDN_APP_3000 (no host ports needed). services: app: build: context: . dockerfile: Dockerfile restart: unless-stopped environment: - SERVICE_FQDN_APP_3000 # Optional – enables the AI conversation partner. Set the value in Coolify → Environment Variables. - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-} healthcheck: test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/api/coach >/dev/null || exit 1"] interval: 30s timeout: 5s retries: 3 start_period: 20s