Spaces:
Running
Running
github-actions[bot] commited on
Commit ·
1722dce
1
Parent(s): 5bc2384
deploy: 77349a4 — 更新 docker-compose.yml
Browse files- docker-compose.yml +3 -3
docker-compose.yml
CHANGED
|
@@ -42,7 +42,7 @@ services:
|
|
| 42 |
postgres:
|
| 43 |
condition: service_healthy
|
| 44 |
healthcheck:
|
| 45 |
-
test: ["CMD-SHELL", "
|
| 46 |
interval: 30s
|
| 47 |
timeout: 10s
|
| 48 |
retries: 5
|
|
@@ -95,7 +95,7 @@ services:
|
|
| 95 |
depends_on:
|
| 96 |
- backend
|
| 97 |
healthcheck:
|
| 98 |
-
test: ["CMD-SHELL", "
|
| 99 |
interval: 20s
|
| 100 |
timeout: 5s
|
| 101 |
retries: 3
|
|
@@ -127,4 +127,4 @@ volumes:
|
|
| 127 |
|
| 128 |
networks:
|
| 129 |
gateway_net:
|
| 130 |
-
driver: bridge
|
|
|
|
| 42 |
postgres:
|
| 43 |
condition: service_healthy
|
| 44 |
healthcheck:
|
| 45 |
+
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:4000/health/liveliness')\" || exit 1"]
|
| 46 |
interval: 30s
|
| 47 |
timeout: 10s
|
| 48 |
retries: 5
|
|
|
|
| 95 |
depends_on:
|
| 96 |
- backend
|
| 97 |
healthcheck:
|
| 98 |
+
test: ["CMD-SHELL", "wget -qO- http://localhost:80/ || exit 1"]
|
| 99 |
interval: 20s
|
| 100 |
timeout: 5s
|
| 101 |
retries: 3
|
|
|
|
| 127 |
|
| 128 |
networks:
|
| 129 |
gateway_net:
|
| 130 |
+
driver: bridge
|