修改默认端口和健康检查
This commit is contained in:
parent
de66a3ebf9
commit
ee6e86d713
@ -4,16 +4,17 @@ services:
|
|||||||
image: nginx:1.27.0-alpine
|
image: nginx:1.27.0-alpine
|
||||||
container_name: surl-front
|
container_name: surl-front
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:80:80
|
- 127.0.0.1:80:11451
|
||||||
volumes:
|
volumes:
|
||||||
- "./dist:/usr/share/nginx/html:ro"
|
- "./dist:/usr/share/nginx/html:ro"
|
||||||
- "./nginx.conf:/etc/nginx/nginx.conf"
|
- "./nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
||||||
interval: 30s
|
interval: 5s
|
||||||
timeout: 10s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 5s
|
||||||
networks:
|
networks:
|
||||||
- surl-network
|
- surl-network
|
||||||
networks:
|
networks:
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
<html lang="zh">
|
<html lang="zh">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="src/assets/icons/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="/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="32x32" href="/icons/favicon-32x32.png">
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="src/assets/icons/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<title>S-URL services</title>
|
<title>S-URL services</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user