Updated release workflow. Added docker compose for the API.
Some checks failed
ci / build-test (push) Successful in 2m6s
ci / publish-image (push) Has been skipped
release / Build & Publish Image (push) Failing after 11s
release / Create Gitea Release (push) Has been skipped
release / Deploy API (Production) (push) Has been skipped

This commit is contained in:
2025-12-07 20:13:25 -05:00
parent cf37c2ad12
commit 671198cf98
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
services:
api:
image: ${REGISTRY}/${IMAGE_NS}:${TAG}
container_name: jsmr-api
restart: unless-stopped
environment:
ASPNETCORE_URLS: http://+:8080
ASPNETCORE_ENVIRONMENT: Production
ConnectionStrings__Default: ${DB_CONN}
CORS__AllowedOrigins: ${ALLOWED_ORIGINS}
TZ: ${TZ:-America/Detroit}
ports:
- "8080:8080" # or remove and put behind your Synology reverse-proxy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
interval: 10s
timeout: 3s
retries: 12