Skip to content

Commit ec32820

Browse files
apognuPascal-Delange
authored andcommitted
Copy the frontend healthcheck from release to dev compose file.
1 parent b7dccd7 commit ec32820

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docker-compose-dev.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ services:
108108
- api
109109
- firebase_auth
110110
healthcheck:
111-
test: curl --fail http://localhost:8080/healthcheck || exit 1
111+
test:
112+
- CMD
113+
- /nodejs/bin/node
114+
- --input-type=module
115+
- -e
116+
- "process.exit((await fetch('http://localhost:${APP_PORT:-8080}/healthcheck')).status == 200 ? 0 : 1)"
112117
interval: 10s
113118
timeout: 60s
114119
retries: 1

0 commit comments

Comments
 (0)