mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user