Updated release workflow. Added docker compose for the API.
Some checks failed
Some checks failed
This commit is contained in:
18
deploy/docker-compose.api.yml
Normal file
18
deploy/docker-compose.api.yml
Normal 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
|
||||
Reference in New Issue
Block a user