28 lines
630 B
YAML
28 lines
630 B
YAML
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: kamco-train-nginx
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./nginx/ssl:/etc/nginx/ssl:ro
|
|
- nginx-logs:/var/log/nginx
|
|
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
|
|
|
|
volumes:
|
|
nginx-logs:
|
|
driver: local |