surl-front/compose.yaml

21 lines
470 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:
- 127.0.0.1:80:80
volumes:
- "./dist:/usr/share/nginx/html:ro"
- "./nginx.conf:/etc/nginx/nginx.conf"
healthcheck:
2024-08-14 14:31:55 +08:00
test: ["CMD", "curl", "-f", "http://localhost/health"]
2024-08-14 07:48:53 +08:00
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
networks:
- surl-network
networks:
surl-network:
external: false