(fix): watchdog for conf health and, if the wg instance is down, don't restart

This commit is contained in:
Shahrad Elahi
2023-11-07 22:31:12 +03:30
parent 9ddcd33450
commit 4ac42b2b7d
5 changed files with 86 additions and 32 deletions

View File

@@ -53,6 +53,9 @@ COPY docker-entrypoint.sh /usr/bin/entrypoint
RUN chmod +x /usr/bin/entrypoint
ENTRYPOINT ["/usr/bin/entrypoint"]
HEALTHCHECK --interval=60s --timeout=3s --start-period=20s --retries=3 \
CMD curl -f http://127.0.0.1:3000/api/health || exit 1
# run the appc
EXPOSE 5173/tcp
CMD [ "npm", "run", "dev", "--", "--host" ]