Skip to content

Commit 2f10564

Browse files
committed
feat(docker/community): add healthcheck to web container via node script
1 parent 2bb56b8 commit 2f10564

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/community/docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ services:
178178
ports:
179179
- 4200:4200
180180
command: ['/bin/sh', '-c', 'pnpm run envsetup:docker && pnpm run start:static:build']
181+
healthcheck:
182+
test:
183+
[CMD-SHELL, "node ./healthchecks/web-server.mjs"]
184+
interval: 5s
185+
timeout: 5s
186+
retries: 3
181187

182188
volumes:
183189
mongodb: ~

0 commit comments

Comments
 (0)