force lf ending of script

This commit is contained in:
Gabriel Matte 2024-12-07 15:05:24 -05:00
parent 567a765f94
commit b3d65e0a1e
2 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,9 @@ services:
SENDER_EMAIL: infoevaluetonsavoir@gmail.com SENDER_EMAIL: infoevaluetonsavoir@gmail.com
EMAIL_PSW: 'vvml wmfr dkzb vjzb' EMAIL_PSW: 'vvml wmfr dkzb vjzb'
JWT_SECRET: haQdgd2jp09qb897GeBZyJetC8ECSpbFJe JWT_SECRET: haQdgd2jp09qb897GeBZyJetC8ECSpbFJe
depends_on:
mongo:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:$${PORT}/health || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:$${PORT}/health || exit 1"]
interval: 5s interval: 5s
@ -84,7 +87,7 @@ services:
# - BACKEND_HOST=backend # - BACKEND_HOST=backend
# - BACKEND_PORT=3000 # - BACKEND_PORT=3000
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget --spider http://0.0.0.0:${PORT}/health || exit 1"] test: ["CMD-SHELL", "wget --spider http://0.0.0.0:$${PORT}/health || exit 1"]
interval: 5s interval: 5s
timeout: 10s timeout: 10s
start_period: 5s start_period: 5s

View file

@ -61,6 +61,7 @@ RUN echo 'load_module modules/ngx_http_js_module.so;' > /tmp/nginx.conf && \
COPY templates/default.conf /etc/nginx/templates/ COPY templates/default.conf /etc/nginx/templates/
COPY njs/main.js /etc/nginx/njs/ COPY njs/main.js /etc/nginx/njs/
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN dos2unix /entrypoint.sh
ENV PORT=80 \ ENV PORT=80 \
FRONTEND_HOST=frontend \ FRONTEND_HOST=frontend \