Skip to content

Commit fe530b2

Browse files
committed
docker quickstart
1 parent 315b5f0 commit fe530b2

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
services:
2+
tailscale-authkey1:
3+
image: tailscale/tailscale:latest
4+
container_name: ts-authkey-test
5+
hostname: banana
6+
environment:
7+
- TS_AUTHKEY=tskey-auth-kc4MhA5vzX11CNTRL-example
8+
- TS_STATE_DIR=/var/lib/tailscale
9+
- TS_USERSPACE=false
10+
volumes:
11+
- ts-authkey-test:/var/lib/tailscale
12+
- /dev/net/tun:/dev/net/tun
13+
cap_add:
14+
- net_admin
15+
- sys_module
16+
restart: unless-stopped
17+
nginx-authkey-test:
18+
image: nginx
19+
network_mode: service:ts-authkey-test
20+
volumes:
21+
ts-authkey-test:
22+
driver: local
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
services:
2+
stirling-ts:
3+
image: tailscale/tailscale:latest
4+
container_name: stirling-ts
5+
hostname: pdf
6+
environment:
7+
- TS_AUTHKEY=tskey-client-kcRHZB3GxG11CNTRL-example?ephemeral=false
8+
- "TS_EXTRA_ARGS=--advertise-tags=tag:container --reset"
9+
#- TS_SERVE_CONFIG=/config/stirling.json
10+
- TS_STATE_DIR=/var/lib/tailscale
11+
- TS_USERSPACE=false
12+
volumes:
13+
- ${PWD}/config:/config
14+
- stirling-ts:/var/lib/tailscale
15+
- /dev/net/tun:/dev/net/tun
16+
cap_add:
17+
- net_admin
18+
- sys_module
19+
restart: unless-stopped
20+
stirlingpdf:
21+
image: frooodle/s-pdf:latest
22+
container_name: stirlingpdf
23+
network_mode: service:stirling-ts
24+
depends_on:
25+
- stirling-ts
26+
volumes:
27+
- stirling-config:/configs
28+
- stirling-storage:/usr/share/tesseract-ocr/5/tessdata
29+
environment:
30+
- DOCKER_ENABLE_SECURITY=false
31+
restart: unless-stopped
32+
33+
volumes:
34+
stirling-ts:
35+
driver: local
36+
stirling-config:
37+
driver: local
38+
stirling-storage:
39+
driver: local
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"TCP": {
3+
"443": {
4+
"HTTPS": true
5+
}
6+
},
7+
"Web": {
8+
"${TS_CERT_DOMAIN}:443": {
9+
"Handlers": {
10+
"/": {
11+
"Proxy": "http://127.0.0.1:8080"
12+
}
13+
}
14+
}
15+
},
16+
"AllowFunnel": {
17+
"${TS_CERT_DOMAIN}:443": false
18+
}
19+
}

0 commit comments

Comments
 (0)