31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
# Cloudflare Tunnel for Homelab-VM
|
|
# Provides secure external access without port forwarding
|
|
#
|
|
# SETUP INSTRUCTIONS:
|
|
# 1. Go to https://one.dash.cloudflare.com/ → Zero Trust → Networks → Tunnels
|
|
# 2. Create a new tunnel named "homelab-vm-tunnel"
|
|
# 3. Copy the tunnel token (starts with eyJ...)
|
|
# 4. Replace TUNNEL_TOKEN_HERE below with your token
|
|
# 5. In the tunnel dashboard, add these public hostnames:
|
|
#
|
|
# | Public Hostname | Service |
|
|
# |------------------------|----------------------------|
|
|
# | gf.vish.gg | http://localhost:3300 |
|
|
# | ntfy.vish.gg | http://localhost:8081 |
|
|
# | hoarder.thevish.io | http://localhost:3000 |
|
|
# | binterest.thevish.io | http://localhost:21544 |
|
|
#
|
|
# 6. Deploy this stack
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
cloudflared:
|
|
image: cloudflare/cloudflared:latest
|
|
container_name: cloudflare-tunnel
|
|
restart: unless-stopped
|
|
command: tunnel run
|
|
environment:
|
|
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
|
|
network_mode: host # Needed to access localhost services
|