surl-front/compose.yaml
2024-08-15 08:41:17 +08:00

22 lines
498 B
YAML

name: surl
services:
surl-front:
image: nginx:1.27.0-alpine
container_name: surl-front
ports:
- 127.0.0.1:80:11451
volumes:
- "./dist:/usr/share/nginx/html:ro"
- "./nginx.conf:/etc/nginx/nginx.conf"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
networks:
- surl-network
networks:
surl-network:
external: false