feat: Add cloudflare tunnel (#166)

* feat: add cloudflare-tunnel service

* feat: add cloudflare-tunnel service

* feat: add cloudflare tunnel token variable

* revert: remove tunnel service

https://github.com/AppFlowy-IO/AppFlowy-Cloud/pull/166#issuecomment-1813735712
This commit is contained in:
古丁丁 2023-11-16 20:31:49 +08:00 committed by GitHub
parent 89b8740691
commit edc5d2bb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -66,3 +66,6 @@ PORTAINER_PASSWORD=password1234
# Grafana Dashboard
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=password
# Cloudflare tunnel token
CLOUDFLARE_TUNNEL_TOKEN=

View File

@ -1,5 +1,15 @@
version: '3'
services:
tunnel:
container_name: cloudflared-tunnel
image: cloudflare/cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
depends_on:
- nginx
portainer:
restart: on-failure
image: portainer/portainer-ce:latest