forked from Rhizome-Conifer/conifer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (131 loc) · 3.44 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
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"
shepherd:
container_name: shepherd
image: oldwebtoday/shepherd:1.1.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=120
- BROWSER_NET=webrecorder_browsers
- MAIN_NET=webrecorder_default
ports:
- 9020:9020
depends_on:
- redis
volumes:
- /var/run/docker.sock:/var/run/docker.sock
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