Files
kamco-train-api/deploy/docker-compose-nginx.yml
dabeeo de2a2e2c35 hoony
2026-04-20 17:15:27 +09:00

25 lines
600 B
YAML

services:
nginx:
image: nginx:alpine
container_name: kamco-train-nginx
user: "1000:1000"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro,Z
- ./ssl:/etc/nginx/ssl:ro,Z
- ./logs:/var/log/nginx:Z
networks:
- kamco-cds
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "--no-check-certificate", "https://localhost/monitor/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
kamco-cds:
external: true