Create a new field within WGServer that will monitor any modifications made to the wg configuration files. Furthermore, implement a health check for the container.

This commit is contained in:
Shahrad Elahi
2023-10-08 12:24:39 +03:30
parent 8ab5b0b0fc
commit 3928a84677
8 changed files with 63 additions and 35 deletions

View File

@@ -28,6 +28,9 @@ COPY /config/torrc /etc/tor/torrc
EXPOSE 3000/tcp
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://127.0.0.1:3000/api/wireguard/healthcheck || exit 1
COPY docker-entrypoint.sh /usr/bin/entrypoint
RUN chmod +x /usr/bin/entrypoint
ENTRYPOINT ["/usr/bin/entrypoint"]