mirror of
https://github.com/jbowdre/tailscale-docker.git
synced 2024-11-22 10:02:18 +00:00
John Bowdre
d48e206786
- add my docker-compose example, remove others - ditch nginx image - move tailscale image from images/tailscale to image/
15 lines
510 B
YAML
15 lines
510 B
YAML
services:
|
|
tailscale:
|
|
build:
|
|
context: ./image/
|
|
container_name: tailscale
|
|
environment:
|
|
TS_AUTH_KEY: ${TS_AUTH_KEY:?err} # from https://login.tailscale.com/admin/settings/authkeys
|
|
TS_HOSTNAME: ${TS_HOSTNAME:-ts-docker}
|
|
TS_STATE_ARG: "/var/lib/tailscale/tailscale.state" # store ts state in a local volume
|
|
TS_SERVE_PORT: ${TS_SERVE_PORT:-}
|
|
volumes:
|
|
- ./ts_data:/var/lib/tailscale/
|
|
myservice:
|
|
image: nginxdemos/hello
|
|
network_mode: "service:tailscale"
|