docker-stacks/cloudflared/docker-compose.yml

20 lines
502 B
YAML
Raw Permalink Normal View History

2024-12-06 16:31:11 +00:00
# https://hub.docker.com/r/cloudflare/cloudflared
services:
cloudflared:
image: "cloudflare/cloudflared:${IMAGE_VERSION:-latest}"
container_name: cloudflared
command:
- 'tunnel'
- '-no-autoupdate'
- 'run'
- '-token'
- '${TUNNEL_TOKEN}'
network_mode: '${NETWORK_MODE:-host}'
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"