-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
141 lines (131 loc) · 3.33 KB
/
docker-compose.yml
File metadata and controls
141 lines (131 loc) · 3.33 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
services:
web:
build:
context: .
dockerfile: apps/web/Dockerfile
restart: unless-stopped
ports:
- '127.0.0.1:80:80'
deploy:
resources:
limits:
memory: 256M
depends_on:
- api
api:
build:
context: .
dockerfile: apps/api/Dockerfile
restart: unless-stopped
environment:
NEO4J_URL: bolt://neo4j:7687
NEO4J_PASS: ${NEO4J_PASSWORD:?Set NEO4J_PASSWORD in .env}
REDIS_HOST: redis
REDIS_PASS: ${REDIS_PASSWORD:?Set REDIS_PASSWORD in .env}
DB_PATH: /data/threadr.db
deploy:
resources:
limits:
memory: 512M
volumes:
- sqlite_data:/data
depends_on:
neo4j:
condition: service_healthy
redis:
condition: service_healthy
worker:
build:
context: .
dockerfile: apps/worker/Dockerfile
restart: unless-stopped
environment:
NEO4J_URL: bolt://neo4j:7687
NEO4J_PASS: ${NEO4J_PASSWORD:?Set NEO4J_PASSWORD in .env}
REDIS_HOST: redis
REDIS_PASS: ${REDIS_PASSWORD:?Set REDIS_PASSWORD in .env}
DB_PATH: /data/threadr.db
deploy:
resources:
limits:
memory: 512M
volumes:
- sqlite_data:/data
depends_on:
neo4j:
condition: service_healthy
redis:
condition: service_healthy
neo4j:
image: neo4j:5-community
restart: unless-stopped
ports:
- '127.0.0.1:7474:7474'
- '127.0.0.1:7687:7687'
environment:
NEO4J_AUTH: neo4j/${NEO4J_PASSWORD:?Set NEO4J_PASSWORD in .env}
NEO4J_dbms_usage__report_enabled: "false"
NEO4J_client_allow__telemetry: "false"
volumes:
- neo4j_data:/data
deploy:
resources:
limits:
memory: 1G
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:7474 || exit 1"]
interval: 10s
retries: 10
start_period: 30s
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- '127.0.0.1:6379:6379'
command: redis-server --requirepass ${REDIS_PASSWORD:?Set REDIS_PASSWORD in .env}
environment:
REDISCLI_AUTH: ${REDIS_PASSWORD:?Set REDIS_PASSWORD in .env}
deploy:
resources:
limits:
memory: 128M
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
retries: 3
# --- Tor proxy instances (optional, start with: docker compose --profile tor up -d) ---
# Each instance runs an isolated Tor circuit with a different exit IP.
# Plugins are mapped to different instances so no single exit sees the full query pattern.
tor-1:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped
ports:
- '127.0.0.1:9051:9150'
profiles: [tor]
tor-2:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped
ports:
- '127.0.0.1:9052:9150'
profiles: [tor]
tor-3:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped
ports:
- '127.0.0.1:9053:9150'
profiles: [tor]
tor-4:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped
ports:
- '127.0.0.1:9054:9150'
profiles: [tor]
tor-5:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped
ports:
- '127.0.0.1:9055:9150'
profiles: [tor]
volumes:
neo4j_data:
sqlite_data: