2024-08-14 07:48:53 +08:00
|
|
|
name: surl
|
|
|
|
services:
|
2024-08-15 10:49:02 +08:00
|
|
|
front:
|
|
|
|
build: .
|
2024-08-21 08:55:45 +08:00
|
|
|
container_name: surl_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-17 15:54:03 +08:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:11451/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-09-04 08:54:41 +08:00
|
|
|
name: 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
|