20 lines
372 B
YAML
20 lines
372 B
YAML
|
|
services:
|
||
|
|
site:
|
||
|
|
build: .
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- caddy
|
||
|
|
labels:
|
||
|
|
caddy: ${DOMAIN}
|
||
|
|
caddy.reverse_proxy: "{{upstreams 8080}}"
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/health"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 3s
|
||
|
|
start_period: 5s
|
||
|
|
retries: 3
|
||
|
|
|
||
|
|
networks:
|
||
|
|
caddy:
|
||
|
|
external: true
|