mirror of
https://github.com/jbowdre/tailscale-docker.git
synced 2024-12-21 21:22:19 +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:
|
||||
tailscale:
|
||||
image: ghcr.io/jbowdre/tailscale-docker:latest
|
||||
restart: unless-stopped
|
||||
container_name: tailscale
|
||||
environment:
|
||||
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
|
||||
myservice:
|
||||
image: nginxdemos/hello
|
||||
restart: unless-stopped
|
||||
network_mode: "service:tailscale" # use the tailscale network service's network
|
||||
|
|
Loading…
Reference in a new issue