feat: add cloudflared tunnel service to docker-compose
This commit is contained in:
2
.env.example
Normal file
2
.env.example
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Put your Cloudflare Tunnel Token here
|
||||||
|
TUNNEL_TOKEN=your_token_here
|
||||||
@@ -4,3 +4,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
tunnel:
|
||||||
|
image: cloudflare/cloudflared:latest
|
||||||
|
restart: always
|
||||||
|
command: tunnel --no-autoupdate run
|
||||||
|
environment:
|
||||||
|
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
|
||||||
|
|||||||
Reference in New Issue
Block a user