22 lines
577 B
YAML
22 lines
577 B
YAML
name: error-page
|
|
|
|
services:
|
|
error-page:
|
|
image: nginx:alpine
|
|
container_name: error-page
|
|
restart: unless-stopped
|
|
# Reach 127.0.0.1-bound app ports on the NAS (DSM reverse proxy style).
|
|
network_mode: host
|
|
environment:
|
|
TZ: Asia/Seoul
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./upstreams.map:/etc/nginx/upstreams.map:ro
|
|
- ./html:/usr/share/nginx/html:ro
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:4098/healthz"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|