docker-stacks/cloudflared/docker-compose.yml
Alexey Skobkin 00c4cf1ef6
All checks were successful
continuous-integration/drone/pr Build is passing
cloudflared. draft.
2024-12-06 19:31:11 +03:00

20 lines
502 B
YAML

# 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}"