All checks were successful
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m1s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m3s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m49s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m48s
- Improved readability and structure of `Caddyfile` by adjusting indentation and comments. - Added production log screenshot (`prod-docker-log-web-app_2026-03-13_12-57.png`) for documentation. Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
41 lines
652 B
Caddyfile
41 lines
652 B
Caddyfile
{
|
|
# Global options
|
|
auto_https off
|
|
servers {
|
|
metrics
|
|
}
|
|
}
|
|
|
|
:4000 {
|
|
# Root directory
|
|
root * /usr/share/caddy
|
|
|
|
# Logging
|
|
log {
|
|
output stdout
|
|
format json
|
|
}
|
|
|
|
# Compression
|
|
encode gzip zstd
|
|
|
|
# Configuration Template
|
|
templates {
|
|
mime application/json
|
|
}
|
|
|
|
# API Proxy (has priority)
|
|
handle /api/* {
|
|
reverse_proxy api-gateway:8081
|
|
}
|
|
|
|
# Health Check
|
|
handle /health {
|
|
respond "healthy" 200
|
|
}
|
|
|
|
# Serve static files if they exist, otherwise serve index.html (SPA)
|
|
file_server
|
|
try_files {path} /index.html
|
|
}
|