-
Notifications
You must be signed in to change notification settings - Fork 120
/
docker-compose.yml
228 lines (172 loc) · 4.67 KB
/
docker-compose.yml
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
version: '2'
services:
app:
container_name: app
build: ./webrecorder
command: ulimit -n 65536; uwsgi --need-app /code/apps/apiapp.ini
env_file:
- ./wr.env
depends_on:
- warcserver
- recorder
- redis
- shepherd
- dat
volumes:
- ./webrecorder/:/code/
- ./data:/data
networks:
- default
- browsers
ulimits: { nofile: 65536 }
frontend:
container_name: frontend
build:
context: ./frontend
env_file:
- ./wr.env
command: sh run.sh
depends_on:
- app
volumes:
- ./frontend/:/code/
- /code/node_modules
ports:
- 8096:8096 # for HMR on dev
dat:
container_name: dat
image: webrecorder/dat-share
environment:
- PORT=3282
- ROOT_DIR=/data/storage
ports:
- "3282:3282/tcp"
- "3282:3282/udp"
volumes:
- ./data:/data
- ./data/dat/secret_keys:/root/.dat/secret_keys
recorder:
container_name: recorder
build: ./webrecorder
command: ulimit -n 65536; uwsgi --need-app /code/apps/rec.ini
env_file:
- ./wr.env
depends_on:
- warcserver
- redis
volumes:
- ./webrecorder/:/code/
- ./data:/data
ulimits: { nofile: 65536 }
warcserver:
container_name: warcserver
build: ./webrecorder
command: ulimit -n 65536; uwsgi --need-app /code/apps/load.ini
env_file:
- ./wr.env
depends_on:
- redis
volumes:
- ./webrecorder/:/code/
- ./data:/data
ulimits: { nofile: 65536 }
nginx:
container_name: nginx
build: ./nginx
image: webrecorder/nginx
depends_on:
- app
- frontend
- behaviors
volumes:
- ./data:/data
- ./webrecorder/:/code/
- ./frontend/:/frontend/
ports:
- 8089:80
- 8092:81
behaviors:
container_name: behaviors
image: "webrecorder/behaviors:latest"
coturn:
container_name: coturn
image: oldwebtoday/coturn:1.0
ports:
- "33478:33478/tcp"
- "33478:33478/udp"
networks:
- browsers
env_file:
- ./wr.env
shepherd:
container_name: shepherd
image: oldwebtoday/shepherd:1.2.0
env_file:
- ./wr.env
environment:
- SCREEN_WIDTH=1280
- SCREEN_HEIGHT=800
- PROXY_HOST=app
- PROXY_PORT=8088
- PROXY_GET_CA=http://wsgiprox/download/pem
- CONTAINER_EXPIRE_SECS=3600
- IDLE_TIMEOUT=5
- BROWSER_NET=conifer_browsers
- MAIN_NET=conifer_default
ports:
- 9020:9020
depends_on:
- redis
volumes:
- ./webrecorder/webrecorder/config/auto-headless.yaml:/app/flocks/auto-headless.yaml
- ./webrecorder/webrecorder/config/pool_config.yaml:/app/pool_config.yaml
- /var/run/docker.sock:/var/run/docker.sock
browsertrix:
container_name: browsertrix
image: webrecorder/browsertrix:0.2.0
#build:
# context: .
environment:
- REDIS_URL=redis://redis/0
- DEFAULT_POOL=auto-pool
- DEFAULT_FLOCK=auto-headless
- SCREENSHOT_API_URL=http://app:8088/api/v1/remote/put-record
- EXTRACTED_RAW_DOM_API_URL=http://app:8088/api/v1/remote/put-record
- PROXY_HOST=app
- PROXY_PORT=8088
depends_on:
- redis
- app
ports:
- 8000:8000
solr:
container_name: solr
image: solr
volumes:
- ./data/solr:/var/solr
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- webrecorder
ports:
- 8983:8983
redis:
container_name: redis
build: ./redis
env_file:
- ./wr.env
volumes:
- ./data:/data
# Postfix (if sending mail locally)
mailserver:
container_name: mailserver
restart: always
image: catatnight/postfix
environment:
- "maildomain=localhost"
- "smtp_user=test:archive"
networks:
default:
driver: bridge
browsers:
driver: bridge