tailscale-docker/docker-compose/simple-example/docker-compose.yml
Ian Neubert 9626fd835c
Set optional tailscaled flags with TAILSCALE_OPT (#6)
* Allow user to set additional Tailscaled options

* Added example use of TAILSCALE_OPT
2023-04-04 10:28:36 -04:00

14 lines
477 B
YAML

version: "3.9"
services:
tailscale:
build:
context: ../../images/tailscale
environment:
TAILSCALE_AUTH_KEY: ${TAILSCALE_AUTH_KEY:?err}
TAILSCALE_HOSTNAME: ${TAILSCALE_HOSTNAME:-tailscale-docker-simple-example}
TAILSCALE_STATE_ARG: "mem:"
# (optional) set additional flags on tailscaled
# TAILSCALE_OPT: --outbound-http-proxy-listen=localhost:1055
some-service-1:
image: nginxdemos/hello
network_mode: "service:tailscale"