Update healthcheck target URL to Facebook's Tor onion service V3

Onion service v2 is deprecated, see:
- https://blog.torproject.org/v2-deprecation-timeline

Facebook onion service reference:
- https://www.facebook.com/onion-service
- https://en.wikipedia.org/wiki/Facebook_onion_address
This commit is contained in:
Peter Dave Hello 2021-07-05 19:40:59 +08:00
parent 9fea5617ee
commit 14b686bc39

View file

@ -13,7 +13,7 @@ RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk
COPY --chown=tor:root torrc /etc/tor/
HEALTHCHECK --timeout=10s --start-period=60s \
CMD curl --fail --socks5-hostname localhost:9150 -I -L 'https://www.facebookcorewwwi.onion/' || exit 1
CMD curl --fail --socks5-hostname localhost:9150 -I -L 'https://www.facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion/' || exit 1
USER tor
EXPOSE 8853/udp 9150/tcp