compose updates

This commit is contained in:
Waylon Walker 2023-05-27 19:27:01 -05:00
parent e6644cc770
commit a538fa8981
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
11 changed files with 49 additions and 36 deletions

View file

@ -0,0 +1,30 @@
version: "3.3"
services:
tailscale:
image: tailscale/tailscale
container_name: tailscaled
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
volumes:
- "/var/lib:/var/lib"
- "/dev/net/tun:/dev/net/tun"
# network_mode: host
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
labels:
- "traefik.enable=true"
- "traefik.http.routers.tailscale.entrypoints=http"
- "traefik.http.routers.tailscale.rule=Host(`tailscale.${URL}`)"
- "traefik.http.middlewares.tailscale-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.tailscale.middlewares=tailscale-https-redirect"
- "traefik.http.routers.tailscale-secure.entrypoints=https"
- "traefik.http.routers.tailscale-secure.rule=Host(`tailscale.${URL}`)"
- "traefik.http.routers.tailscale-secure.tls=true"
- "traefik.http.routers.tailscale-secure.service=tailscale"
- "traefik.http.services.tailscale.loadbalancer.server.port=9000"
- "traefik.docker.network=proxy"