-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.8'
services:
# Caddy - TLS termination and reverse proxy
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
environment:
- DOMAIN=${DOMAIN}
- SECRET_PATH=${SECRET_PATH}
depends_on:
- webtunnel
networks:
- bridge-net
# WebTunnel transport
webtunnel:
build:
context: .
dockerfile: Dockerfile.webtunnel
restart: unless-stopped
environment:
- SECRET_PATH=${SECRET_PATH}
volumes:
- webtunnel_state:/var/lib/webtunnel
depends_on:
- tor
networks:
- bridge-net
# Tor bridge relay
tor:
build:
context: .
dockerfile: Dockerfile.tor
restart: unless-stopped
environment:
- NICKNAME=${NICKNAME:-WebtorBridge}
- EMAIL=${EMAIL}
- OR_PORT=9001
volumes:
- tor_data:/var/lib/tor
- ./torrc.template:/etc/tor/torrc.template:ro
networks:
- bridge-net
volumes:
caddy_data:
caddy_config:
webtunnel_state:
tor_data:
networks:
bridge-net:
driver: bridge