# docker-compose.yml — Cloud Run Compose deployment # # Usage: # gcloud run services replace docker-compose.yml --region=REGION # # Or via the deploy script: # ./GCR/scripts/03-deploy.sh # # Environment variables are substituted from your shell or a .env file. # Copy GCR/.env.example to GCR/.env and fill in your values before deploying. # # Cloud Run Compose reference: # https://docs.cloud.google.com/run/docs/deploy-run-compose services: app: # IMAGE_URI is set by the deploy script after pushing to Artifact Registry. # Format: REGION-docker.pkg.dev/PROJECT_ID/REPOSITORY/SERVICE_NAME:TAG image: ${IMAGE_URI} environment: # Non-sensitive config only — sensitive values (like MongoDB connection string) # are injected via Secret Manager (--set-secrets) by the deploy script. MongoDbName: ${MONGODB_DATABASE_NAME:-HtmxAppDb} ASPNETCORE_ENVIRONMENT: Production # Cloud Run only honours the first port entry; the container must listen on # the port Cloud Run advertises via the PORT env var (default 8080). ports: - target: 8080