commit 5184265c664b681e923ff39fe54e912219d00212 Author: Michael Andrew Maurakis Date: Tue Sep 3 23:09:33 2024 -0500 Docker compose File template for Tailscale. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7b03ea8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +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 + #- TS_EXTRA_ARGS=--advertise-tags=tag:container # Uncomment this if you want to add a tag to your file + #- TS_FUNNEL_CONFIG=/config/funnel.json # Uncomment this and comment the next line if you want to host your app publically. + - TS_SERVE_CONFIG=/config/serve.json + - TS_STATE_DIR=/var/lib/tailscale + - TS_USERSPACE=false + - TS_ACCEPT_DNS=true + 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 \ No newline at end of file