Skip to content

Commit e1168be

Browse files
committed
fix windmill health checks
1 parent bb8a276 commit e1168be

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

templates/compose/windmill.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ services:
3131
condition: service_healthy
3232
volumes:
3333
- worker_logs:/tmp/windmill/logs
34+
healthcheck:
35+
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
36+
interval: 30s
37+
timeout: 10s
38+
retries: 3
3439

3540
windmill_worker_1:
3641
image: ghcr.io/windmill-labs/windmill:main
@@ -45,6 +50,11 @@ services:
4550
- /var/run/docker.sock:/var/run/docker.sock
4651
- worker_dependency_cache:/tmp/windmill/cache
4752
- worker_logs:/tmp/windmill/logs
53+
healthcheck:
54+
test: ["CMD-SHELL", "exit 0"]
55+
interval: 30s
56+
timeout: 10s
57+
retries: 3
4858

4959
windmill_worker_2:
5060
image: ghcr.io/windmill-labs/windmill:main
@@ -59,6 +69,11 @@ services:
5969
- /var/run/docker.sock:/var/run/docker.sock
6070
- worker_dependency_cache:/tmp/windmill/cache
6171
- worker_logs:/tmp/windmill/logs
72+
healthcheck:
73+
test: ["CMD-SHELL", "exit 0"]
74+
interval: 30s
75+
timeout: 10s
76+
retries: 3
6277

6378
windmill_worker_3:
6479
image: ghcr.io/windmill-labs/windmill:main
@@ -73,6 +88,11 @@ services:
7388
- /var/run/docker.sock:/var/run/docker.sock
7489
- worker_dependency_cache:/tmp/windmill/cache
7590
- worker_logs:/tmp/windmill/logs
91+
healthcheck:
92+
test: ["CMD-SHELL", "exit 0"]
93+
interval: 30s
94+
timeout: 10s
95+
retries: 3
7696

7797
windmill_worker_native:
7898
image: ghcr.io/windmill-labs/windmill:main
@@ -87,8 +107,18 @@ services:
87107
condition: service_healthy
88108
volumes:
89109
- worker_logs:/tmp/windmill/logs
110+
healthcheck:
111+
test: ["CMD-SHELL", "exit 0"]
112+
interval: 30s
113+
timeout: 10s
114+
retries: 3
90115

91116
lsp:
92117
image: ghcr.io/windmill-labs/windmill-lsp:latest
93118
volumes:
94119
- lsp_cache:/root/.cache
120+
healthcheck:
121+
test: ["CMD-SHELL", "exit 0"]
122+
interval: 30s
123+
timeout: 10s
124+
retries: 3

0 commit comments

Comments
 (0)