feat: add tor-proxy service for SSH and admin panel access via Tor

- Add tor-proxy/Dockerfile: Alpine + Tor with entrypoint
- Add tor-proxy/entrypoint.sh: dynamic torrc generation with env var validation
- Update docker-compose.yml: add tor-proxy service with shared tor_proxy_net network
- Two Tor hidden services: SSH (port 22) and admin panel (port 80 -> 3001)
- Update .env.example: add SSH_HOST_IP, SHOP_CONTAINER, ADMIN_PORT vars
This commit is contained in:
NW
2026-06-24 11:30:38 +01:00
parent 4aea49811c
commit d8bfb29205
4 changed files with 114 additions and 0 deletions

12
tor-proxy/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM alpine:3.18
RUN apk add --no-cache \
tor \
bash
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 22 80
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]