1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00

Add healthcheck

This commit is contained in:
Suika 2019-10-03 02:56:20 +02:00 committed by GitHub
parent 3956b2d944
commit 9c6a7c97e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,3 +20,6 @@ ENV NODE_ENV=production
COPY --from=0 /build/release /app
RUN ln -s /app/data/config/config.json config.json
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/TEMP"]
HEALTHCHECK --interval=15s --timeout=5s --retries=4 --start-period=30s \
CMD wget --quiet --tries=1 --no-check-certificate --spider \
http://localhost:80 || exit 1