2024-09-04 00:45:51 -05:00
|
|
|
# Master Template that can be used for referrence.
|
2024-09-03 23:09:33 -05:00
|
|
|
services:
|
|
|
|
tailscale-mauix.bio:
|
|
|
|
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 AS NOTHING WILL WORK
|
2024-09-04 00:25:22 -05:00
|
|
|
#- TS_EXTRA_ARGS=--advertise-tags=tag:container # Uncomment this if you want to add a tag to your node. Useful for access control lists.
|
|
|
|
#- TS_FUNNEL_CONFIG=/config/funnel.json # Uncomment this and comment the next line if you want to host your app publicly.
|
|
|
|
- TS_SERVE_CONFIG=/config/serve.json # Comment this line if you uncomment the one above.
|
2024-09-03 23:09:33 -05:00
|
|
|
- TS_STATE_DIR=/var/lib/tailscale
|
2024-12-11 21:11:43 -06:00
|
|
|
- TS_USERSPACE=true
|
|
|
|
- TS_ACCEPT_DNS=false
|
2024-09-03 23:09:33 -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
|