add cloudflare tunnel
This commit is contained in:
parent
f2200011ae
commit
f0090e9ed5
2 changed files with 15 additions and 1 deletions
|
|
@ -13,3 +13,6 @@ ADMIN_EMAILS=jerry@gmail.com
|
|||
|
||||
# Nombre de pronostics à partir duquel les tendances (arrondies) sont affichées
|
||||
STATS_MIN_PREDICTIONS=5
|
||||
|
||||
# Token du tunnel Cloudflare (dashboard Zero Trust > Tunnels)
|
||||
TUNNEL_TOKEN=
|
||||
|
|
|
|||
|
|
@ -4,9 +4,20 @@ services:
|
|||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- naissance-data:/data
|
||||
|
||||
cloudflared:
|
||||
image: cloudflare/cloudflared:latest
|
||||
restart: unless-stopped
|
||||
command: tunnel --no-autoupdate run
|
||||
environment:
|
||||
TUNNEL_TOKEN: ${TUNNEL_TOKEN}
|
||||
# Réseau de l'hôte : "localhost:3000" (origine du tunnel) atteint le port publié ci-dessus
|
||||
network_mode: host
|
||||
depends_on:
|
||||
- naissance
|
||||
|
||||
volumes:
|
||||
naissance-data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue