cleaned up compose file

This commit is contained in:
Peter Wood
2024-11-20 13:55:03 +00:00
parent 8b90b6b88b
commit 3189730bb4

View File

@@ -3,7 +3,7 @@ services:
image: cloudflare/cloudflared:latest image: cloudflare/cloudflared:latest
container_name: cloudflare-tunnel container_name: cloudflare-tunnel
restart: unless-stopped restart: unless-stopped
command: 'tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}' command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
depends_on: depends_on:
- tailscale - tailscale
tailscale: tailscale:
@@ -12,7 +12,8 @@ services:
volumes: volumes:
- ./tailscale:/var/lib # State data will be stored in this directory - ./tailscale:/var/lib # State data will be stored in this directory
- /dev/net/tun:/dev/net/tun # Required for tailscale to work - /dev/net/tun:/dev/net/tun # Required for tailscale to work
cap_add: # Required for tailscale to work cap_add:
# Required for tailscale to work
- net_admin - net_admin
- sys_module - sys_module
environment: environment:
@@ -21,3 +22,4 @@ services:
command: tailscaled command: tailscaled
privileged: true privileged: true
restart: unless-stopped restart: unless-stopped
networks: {}