Compare commits

...

2 Commits

Author SHA1 Message Date
Glahera Matebi
bd80ed38fb Adding example docker compose file 2024-12-18 10:36:13 +07:00
Glahera Matebi
2a602e40f3 Adding GitIgnore to exclude .env file 2024-12-18 10:25:24 +07:00
2 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

21
compose-example.yml Normal file
View File

@ -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: