Intial commit for deployment script p2

This commit is contained in:
2026-05-04 23:23:02 +05:00
parent 724e6a8ecd
commit 40fe69ed65
20 changed files with 2008 additions and 2 deletions
+30
View File
@@ -0,0 +1,30 @@
# 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