Skip to content

Commit 5e65978

Browse files
haexhubhaex-space
andauthored
fix(docker): point healthcheck at /api/regions (#4)
The /api/bundeslaender route was removed in the country/region refactor (PR #3). The Dockerfile HEALTHCHECK still hit it, so the container was flagged unhealthy and Traefik dropped it from the load balancer pool — the public site started returning Traefik's default 404. The production compose (managed via the ansible role) overrides this healthcheck with the same stale URL; that needs the matching fix in the ansible repo. Co-authored-by: haex <mail@haex.space>
1 parent af3021b commit 5e65978

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ USER node
3939
EXPOSE 3000
4040

4141
HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \
42-
CMD wget -qO- http://localhost:3000/api/bundeslaender > /dev/null || exit 1
42+
CMD wget -qO- http://localhost:3000/api/regions > /dev/null || exit 1
4343

4444
CMD ["node", ".output/server/index.mjs"]

0 commit comments

Comments
 (0)