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
container_name: cloudflare-tunnel
restart: unless-stopped
command: 'tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}'
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
depends_on:
- tailscale
tailscale:
@@ -12,7 +12,8 @@ services:
volumes:
- ./tailscale:/var/lib # State data will be stored in this directory
- /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
- sys_module
environment:
@@ -21,3 +22,4 @@ services:
command: tailscaled
privileged: true
restart: unless-stopped
networks: {}