1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-08-30 17:49:48 +02:00

Add healthcheck for standalone app

This commit is contained in:
Luck
2022-08-05 20:33:33 +01:00
parent fe0cb2df25
commit b1953632c5
11 changed files with 288 additions and 14 deletions

View File

@@ -20,3 +20,6 @@ RUN mkdir data
VOLUME ["/opt/luckperms/data"]
CMD ["java", "-jar", "luckperms-standalone.jar", "--docker"]
HEALTHCHECK --interval=30s --timeout=15s --start-period=20s \
CMD wget http://localhost:3001/health -q -O - | grep -c '"up":true' || exit 1