-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.tor.yml
More file actions
55 lines (51 loc) · 1.22 KB
/
docker-compose.tor.yml
File metadata and controls
55 lines (51 loc) · 1.22 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
version: "3.8"
services:
tor:
build:
context: .
dockerfile: Dockerfile.tor
container_name: nodecore-tor
restart: unless-stopped
volumes:
# Only mount the directory where Tor will store keys
- ./tor-data/nodecore:/var/lib/tor/hidden_service
networks:
- tor-network
ports:
# SOCKS5 proxy port (optional, for debugging)
- "9050:9050"
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "9050"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
nodecore:
build:
context: .
dockerfile: Dockerfile
container_name: nodecore-app
restart: unless-stopped
volumes:
# Mount your custom configuration
- ${NODECORE_CONFIG:-./nodecore.yml}:/app/nodecore.yml:ro
environment:
- NODECORE_CONFIG_PATH=/app/nodecore.yml
networks:
tor-network:
ipv4_address: 10.5.0.10
# Do not expose ports publicly - only accessible through Tor
expose:
- "9090"
- "9093"
depends_on:
- tor
networks:
tor-network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
# Note: Do not set 'internal: true' - Tor needs internet access
volumes:
tor-data: