diff --git a/.gitignore b/.gitignore index 934c1fb..4c49bd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -*/.env +.env diff --git a/compose-example.yml b/compose-example.yml new file mode 100644 index 0000000..5fdfeeb --- /dev/null +++ b/compose-example.yml @@ -0,0 +1,21 @@ +services: + ts: + image: 'tailscale/tailscale:latest' + hostname: $APPNAME + restart: 'always' + environment: + - "TS_AUTHKEY=$TS_AUTHKEY" + - "TS_EXTRA_ARGS=--advertise-tags=tag:container" + - "TS_USERSPACE=true" + - "TS_STATE_DIR=/var/lib/tailscale" + volumes: + - 'ts_state:/var/lib/tailscale' + svr: + build: + context: . + depends_on: + - 'ts' + restart: 'always' + network_mode: 'service:ts' +volumes: + ts_state: