mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Add more logging during docker diagnostics #127.
This commit is contained in:
parent
2ba1e11a21
commit
c098dc6157
@ -32,7 +32,7 @@ COPY --from=builder /app /app
|
|||||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||||
|
|
||||||
# Run build time diagnostics to make sure the app would work after build is finished
|
# Run build time diagnostics to make sure the app would work after build is finished
|
||||||
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json"]
|
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]
|
||||||
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
||||||
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
||||||
http://127.0.0.1:80/heartbeat || exit 1
|
http://127.0.0.1:80/heartbeat || exit 1
|
||||||
|
@ -33,7 +33,7 @@ COPY --from=builder /app /app
|
|||||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||||
|
|
||||||
# Run build time diagnostics to make sure the app would work after build is finished
|
# Run build time diagnostics to make sure the app would work after build is finished
|
||||||
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json"]
|
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]
|
||||||
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
||||||
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
||||||
http://127.0.0.1:80/heartbeat || exit 1
|
http://127.0.0.1:80/heartbeat || exit 1
|
||||||
|
@ -33,7 +33,7 @@ COPY --from=builder /app /app
|
|||||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||||
|
|
||||||
# Run build time diagnostics to make sure the app would work after build is finished
|
# Run build time diagnostics to make sure the app would work after build is finished
|
||||||
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json"]
|
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]
|
||||||
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
||||||
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
||||||
http://127.0.0.1:80/heartbeat || exit 1
|
http://127.0.0.1:80/heartbeat || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user