forked from hollie/tailscale-caddy-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (24 loc) · 951 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
networks:
tailscale_proxy_example:
external: false
volumes:
tailscale-whoami-state:
services:
whoami:
image: traefik/whoami
networks:
- tailscale_proxy_example
tailscale-whoami-proxy:
image: hollie/tailscale-caddy-proxy:latest
volumes:
- tailscale-whoami-state:/var/lib/tailscale # Persist the tailscale state directory
environment:
- TS_HOSTNAME=tailscale-example # Hostname you want this instance to have on the tailscale network
- TS_TAILNET=tailnet-XXXX # Your tailnet name without the .ts.net suffix!
- CADDY_TARGET=whoami:80 # Target service and port
# - TS_EXTRA_ARGS=--accept-dns # Optional extra arguments to pass when starting tailscale
# - SKIP_CADDYFILE_GENERATION=1 # Set this if you want to be able to override /etc/caddy/Caddyfile via a volume mapping
restart: on-failure
init: true
networks:
- tailscale_proxy_example