tailscale-docker/docker-compose/complex-example/docker-compose.yml

21 lines
495 B
YAML
Raw Normal View History

2022-08-22 18:03:01 +00:00
version: "3.9"
services:
tailscale:
build:
context: images/tailscale
2022-08-22 18:40:15 +00:00
environment:
TAILSCALE_AUTH_KEY: ${TAILSCALE_AUTH_KEY:?err}
TAILSCALE_HOSTNAME: ${TAILSCALE_HOSTNAME:-tailscale-docker-complex-example}
TAILSCALE_STATE_ARG: "mem:"
2022-08-22 18:03:01 +00:00
nginx:
build:
context: images/nginx
2022-08-22 18:03:01 +00:00
depends_on:
- service-one
- service-two
network_mode: "service:tailscale"
service-one:
image: nginxdemos/hello
service-two:
image: nginxdemos/hello