mirror of
https://github.com/acedanger/docker.git
synced 2025-12-06 00:00:13 -08:00
cleaned up compose file
This commit is contained in:
@@ -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: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user