mirror of
https://github.com/jbowdre/tailscale-docker.git
synced 2024-12-22 05:32:18 +00:00
restart containers unless stopped
This commit is contained in:
parent
a54e45ca71
commit
363f67ec8a
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
services:
|
services:
|
||||||
tailscale:
|
tailscale:
|
||||||
image: ghcr.io/jbowdre/tailscale-docker:latest
|
image: ghcr.io/jbowdre/tailscale-docker:latest
|
||||||
|
restart: unless-stopped
|
||||||
container_name: tailscale
|
container_name: tailscale
|
||||||
environment:
|
environment:
|
||||||
TS_AUTHKEY: ${TS_AUTHKEY:?err} # from https://login.tailscale.com/admin/settings/authkeys
|
TS_AUTHKEY: ${TS_AUTHKEY:?err} # from https://login.tailscale.com/admin/settings/authkeys
|
||||||
|
@ -14,4 +15,5 @@ services:
|
||||||
- ./ts_data:/var/lib/tailscale/ # the mountpoint should match TS_STATE_DIR
|
- ./ts_data:/var/lib/tailscale/ # the mountpoint should match TS_STATE_DIR
|
||||||
myservice:
|
myservice:
|
||||||
image: nginxdemos/hello
|
image: nginxdemos/hello
|
||||||
|
restart: unless-stopped
|
||||||
network_mode: "service:tailscale" # use the tailscale network service's network
|
network_mode: "service:tailscale" # use the tailscale network service's network
|
||||||
|
|
Loading…
Reference in a new issue