2024-08-14 07:48:53 +08:00
|
|
|
name: surl
|
|
|
|
services:
|
2024-08-15 10:49:02 +08:00
|
|
|
front:
|
|
|
|
build: .
|
|
|
|
container_name: front
|
2024-08-14 07:48:53 +08:00
|
|
|
ports:
|
2024-08-15 10:49:02 +08:00
|
|
|
- "127.0.0.1:80:11451"
|
2024-08-14 07:48:53 +08:00
|
|
|
volumes:
|
|
|
|
- "./dist:/usr/share/nginx/html:ro"
|
2024-08-16 11:53:48 +08:00
|
|
|
- "./nginx.conf:/etc/nginx/nginx.conf:ro"
|
|
|
|
- "nginx_logs:/var/log/nginx:rw"
|
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:
|
2024-08-16 11:53:48 +08:00
|
|
|
external: false
|
|
|
|
volumes:
|
|
|
|
nginx_logs:
|
2024-08-14 07:48:53 +08:00
|
|
|
external: false
|