mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-25 02:04:15 +02:00
Add healthcheck
This commit is contained in:
parent
3956b2d944
commit
9c6a7c97e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user