surl-front/compose.yaml

22 lines
498 B
YAML
Raw Normal View History

2024-08-14 07:48:53 +08:00
name: surl
services:
surl-front:
image: nginx:1.27.0-alpine
container_name: surl-front
ports:
2024-08-15 08:41:17 +08:00
- 127.0.0.1:80:11451
2024-08-14 07:48:53 +08:00
volumes:
- "./dist:/usr/share/nginx/html:ro"
- "./nginx.conf:/etc/nginx/nginx.conf"
2024-08-15 08:41:17 +08:00
restart: unless-stopped
2024-08-14 07:48:53 +08:00
healthcheck:
2024-08-14 14:31:55 +08:00
test: ["CMD", "curl", "-f", "http://localhost/health"]
2024-08-15 08:41:17 +08:00
interval: 5s
timeout: 5s
2024-08-14 07:48:53 +08:00
retries: 5
2024-08-15 08:41:17 +08:00
start_period: 5s
2024-08-14 07:48:53 +08:00
networks:
- surl-network
networks:
surl-network:
external: false