Skip to content

Commit 28b0856

Browse files
committed
feat(docker/community): add healthcheck to web container via node script
1 parent ac35c5d commit 28b0856

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/community/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ services:
175175
ports:
176176
- 4200:4200
177177
command: ['/bin/sh', '-c', 'pnpm run envsetup:docker && pnpm run start:static:build']
178+
healthcheck:
179+
test:
180+
[CMD-SHELL, "node ./healthchecks/web-server.mjs"]
181+
interval: 5s
182+
timeout: 5s
183+
retries: 3
178184

179185
volumes:
180186
mongodb: ~

0 commit comments

Comments
 (0)