surl-front/compose.yaml
2024-09-04 08:54:41 +08:00

27 lines
591 B
YAML

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