feat(monitoring): general fixup
- added healthcheck for every service
- added nginx second "server" block for monitoring
all monitoring services are now behind this nginx reverse proxy
- fixed logging driver not present for chat service
This commit is contained in:
parent
67c8a9cbd1
commit
8a3481ea8b
10 changed files with 209 additions and 48 deletions
|
|
@ -1,6 +1,7 @@
|
|||
FROM node:22-alpine AS pnpm_base
|
||||
RUN npm install --global pnpm@10 --no-fund -q;
|
||||
RUN apk add make python3 gcc clang build-base musl-dev;
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
FROM pnpm_base AS deps
|
||||
WORKDIR /build
|
||||
|
|
@ -50,5 +51,8 @@ COPY --from=deps /build/node_modules /src/node_modules
|
|||
COPY ${EXTRA_FILES} /extra
|
||||
ENTRYPOINT [ "/src/entrypoint.sh" ]
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s \
|
||||
CMD curl -f -s http://localhost/monitoring?docker || exit 1
|
||||
|
||||
CMD ["node", "/src/run.cjs"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue