修改默认端口和健康检查

This commit is contained in:
05412 2024-08-15 08:41:17 +08:00
parent de66a3ebf9
commit ee6e86d713
2 changed files with 8 additions and 7 deletions

View File

@ -4,16 +4,17 @@ services:
image: nginx:1.27.0-alpine
container_name: surl-front
ports:
- 127.0.0.1:80:80
- 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: 30s
timeout: 10s
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
start_period: 5s
networks:
- surl-network
networks:

View File

@ -2,9 +2,9 @@
<html lang="zh">
<head>
<meta charset="UTF-8"/>
<link rel="apple-touch-icon" sizes="180x180" href="src/assets/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="src/assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="src/assets/icons/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="manifest" href="manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>S-URL services</title>