Tailscale-Compose-Examples/hugo/docker-compose.yml

20 lines
866 B
YAML
Raw Permalink Normal View History

2024-09-04 00:28:41 -05:00
services:
2024-09-04 00:30:45 -05:00
tailscale-hugo:
2024-09-04 00:28:41 -05:00
image: tailscale/tailscale:latest
hostname: tail # Assign a name this so that you can set your domain name ex. https://tail.penguin-dory.ts.net
environment:
- TS_AUTHKEY= # BE SURE TO ADD YOUR KEY OR ELSE NOTHING WILL WORK
#- TS_EXTRA_ARGS=--advertise-tags=tag:container # Uncomment this if you want to add a tag to your node. Useful for access control lists.
2024-09-04 00:29:30 -05:00
- TS_FUNNEL_CONFIG=/config/funnel.json
2024-09-04 00:28:41 -05:00
- TS_STATE_DIR=/var/lib/tailscale
2024-12-11 20:31:11 -06:00
- TS_USERSPACE=true
- TS_ACCEPT_DNS=false
2024-09-04 00:28:41 -05:00
volumes:
- ${PWD}/tailserve-config:/config
- ${PWD}/tailscale/state:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
- ./public:/public #If you are publishing a hugo site then you can just uncomment this line.
cap_add:
- net_admin
- sys_module
restart: unless-stopped