Files
runtipi/apps/rego-tunnel/docker-compose.yml
alexz f878882718
Some checks failed
Test / test (push) Has been cancelled
Renovate / renovate (push) Has been cancelled
rego-tunnel: auto-setup SSH, socat, and port forwarding
- Add vpn_scripts volume mount
- Install socat, openssh-client, netcat on startup
- Copy SSH key to /root/.ssh/ automatically
- Add socat forwarder for SSH (port 22)
- Expose ports 22 and 1080 in user-config

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 17:50:13 +00:00

48 lines
2.1 KiB
YAML
Executable File

services:
rego-tunnel:
container_name: rego-tunnel
image: dockurr/windows:latest
restart: unless-stopped
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
stop_grace_period: 2m
ports:
# Web console (Tipi APP_PORT -> 8006)
- ${APP_PORT}:8006
environment:
- RAM_SIZE=${WINDOWS_RAM_GB}G
- CPU_CORE=${WINDOWS_CPU_CORES}
- DISK_SIZE=${WINDOWS_DISK_SIZE_GB}G
- VERSION=${WINDOWS_VERSION}
volumes:
- ${APP_DATA_DIR}/data/storage:/storage
- ${APP_DATA_DIR}/data/shared:/shared
- /etc/runtipi/repos/runtipi/apps/rego-tunnel/vpn_scripts:/vpn_scripts:ro
networks:
- tipi_main_network
sysctls:
- net.ipv4.ip_forward=1
labels:
traefik.enable: true
traefik.http.middlewares.rego-tunnel-web-redirect.redirectscheme.scheme: https
traefik.http.services.rego-tunnel.loadbalancer.server.port: 8006
traefik.http.routers.rego-tunnel-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.rego-tunnel-insecure.entrypoints: web
traefik.http.routers.rego-tunnel-insecure.service: rego-tunnel
traefik.http.routers.rego-tunnel-insecure.middlewares: rego-tunnel-web-redirect
traefik.http.routers.rego-tunnel.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.rego-tunnel.entrypoints: websecure
traefik.http.routers.rego-tunnel.service: rego-tunnel
traefik.http.routers.rego-tunnel.tls.certresolver: myresolver
traefik.http.routers.rego-tunnel-local-insecure.rule: Host(`rego-tunnel.${LOCAL_DOMAIN}`)
traefik.http.routers.rego-tunnel-local-insecure.entrypoints: web
traefik.http.routers.rego-tunnel-local-insecure.service: rego-tunnel
traefik.http.routers.rego-tunnel-local-insecure.middlewares: rego-tunnel-web-redirect
traefik.http.routers.rego-tunnel-local.rule: Host(`rego-tunnel.${LOCAL_DOMAIN}`)
traefik.http.routers.rego-tunnel-local.entrypoints: websecure
traefik.http.routers.rego-tunnel-local.service: rego-tunnel
traefik.http.routers.rego-tunnel-local.tls: true
runtipi.managed: true