Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
220 lines (206 loc) · 5.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
220 lines (206 loc) · 5.67 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
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
name: eventyay-next
x-app-build: &app-build
context: ./app
# Expose repo root so Dockerfile can read EVY_NPM_DEV from .env.dev at build time.
additional_contexts:
project_root: .
services:
web:
build: *app-build
platform: linux/amd64
container_name: eventyay-next-web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./app/eventyay:/usr/src/app/eventyay
- ./app/entrypoint.sh:/usr/src/app/entrypoint.sh
- ./app/tests:/usr/src/app/tests
- ./plugins:/usr/src/plugins
- /usr/src/app/eventyay/static.dist
- /usr/src/app/eventyay/static/video
- /usr/src/app/eventyay/static/schedule-editor
- /usr/src/app/eventyay/webapp/video/node_modules
- /usr/src/app/eventyay/webapp/schedule-editor/node_modules
- /usr/src/app/eventyay/webapp/schedule/node_modules
- /usr/src/plugins/eventyay-checkin/node_modules
ports:
- 8000:8000
- 8080:8080
- 8082:8082
- 8085:8085
- 8880:8880
env_file:
- ./.env.dev
depends_on:
- db
- redis
worker:
build: *app-build
platform: linux/amd64
container_name: eventyay-next-worker
# Dev: one worker on all queues. Production uses worker + worker-heavy (deployment/docker-compose.yml).
command: celery -A eventyay worker -l info -Q default,notifications,longrunning,background
volumes:
- ./app/eventyay:/usr/src/app/eventyay
- ./app/entrypoint.sh:/usr/src/app/entrypoint.sh
- ./plugins:/usr/src/plugins
- /usr/src/app/eventyay/static.dist
- /usr/src/app/eventyay/static/video
- /usr/src/app/eventyay/static/schedule-editor
- /usr/src/app/eventyay/webapp/video/node_modules
- /usr/src/app/eventyay/webapp/schedule-editor/node_modules
- /usr/src/app/eventyay/webapp/schedule/node_modules
- /usr/src/plugins/eventyay-checkin/node_modules
env_file:
- ./.env.dev
environment:
- MPLCONFIGDIR=/tmp/matplotlib
depends_on:
- db
- redis
beat:
build: *app-build
platform: linux/amd64
container_name: eventyay-next-beat
command: celery -A eventyay beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- ./app/eventyay:/usr/src/app/eventyay
- ./app/entrypoint.sh:/usr/src/app/entrypoint.sh
- ./plugins:/usr/src/plugins
- /usr/src/app/eventyay/static.dist
- /usr/src/app/eventyay/static/video
- /usr/src/app/eventyay/static/schedule-editor
- /usr/src/app/eventyay/webapp/video/node_modules
- /usr/src/app/eventyay/webapp/schedule-editor/node_modules
- /usr/src/app/eventyay/webapp/schedule/node_modules
env_file:
- ./.env.dev
environment:
- MPLCONFIGDIR=/tmp/matplotlib
depends_on:
- db
- redis
redis:
image: redis:latest
platform: linux/amd64
container_name: eventyay-next-redis
restart: unless-stopped
volumes:
- rd:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
db:
image: postgres:15
platform: linux/amd64
container_name: eventyay-next-db
command: postgres -c max_connections=500
volumes:
- postgres_data_dev:/var/lib/postgresql/data/
env_file:
- ./.env.dev
# --- VIDEO TEST SERVERS ---
janus:
image: canyan/janus-gateway:latest
platform: linux/amd64
container_name: eventyay-janus
restart: unless-stopped
ports:
- "8188:8188"
- "8088:8088"
- "7088:7088"
- "20000-20050:20000-20050/udp"
env_file:
- ./.env.dev
coturn:
image: coturn/coturn:latest
platform: linux/amd64
container_name: eventyay-coturn
restart: unless-stopped
ports:
- "3478:3478/tcp"
- "3478:3478/udp"
- "5349:5349/tcp"
- "5349:5349/udp"
command:
- -a
- -v
- -n
- -u
- eventyay:eventyay_coturn_secret
- -r
- localhost
- --static-auth-secret=eventyay_coturn_secret
env_file:
- ./.env.dev
jitsi-prosody:
image: jitsi/prosody:stable-10888
platform: linux/amd64
container_name: eventyay-jitsi-prosody
restart: unless-stopped
expose:
- "5222"
- "5269"
- "5347"
- "5280"
volumes:
- eventyay_jitsi_prosody_config:/config
env_file:
- ./.env.dev
networks:
default:
aliases:
- xmpp.meet.jitsi
jitsi-jicofo:
image: jitsi/jicofo:stable-10888
platform: linux/amd64
container_name: eventyay-jitsi-jicofo
restart: unless-stopped
ports:
- "127.0.0.1:8889:8888"
volumes:
- eventyay_jitsi_jicofo_config:/config
env_file:
- ./.env.dev
depends_on:
- jitsi-prosody
jitsi-jvb:
image: jitsi/jvb:stable-10888
platform: linux/amd64
container_name: eventyay-jitsi-jvb
restart: unless-stopped
ports:
- "10001:10001/udp"
- "127.0.0.1:8091:8080"
volumes:
- eventyay_jitsi_jvb_config:/config
env_file:
- ./.env.dev
depends_on:
- jitsi-prosody
jitsi-web:
image: jitsi/web:stable-10888
platform: linux/amd64
container_name: eventyay-jitsi-web
restart: unless-stopped
ports:
- "8002:80"
- "8443:443"
entrypoint:
- /bin/sh
- -c
- |
mkdir -p /config
printf "config.bosh = '/http-bind';\nconfig.websocket = 'ws://localhost:8002/xmpp-websocket';\n" > /config/custom-config.js
exec /init
volumes:
- eventyay_jitsi_web_config:/config
env_file:
- ./.env.dev
depends_on:
- jitsi-jvb
volumes:
postgres_data_dev:
rd:
eventyay_jitsi_prosody_config:
eventyay_jitsi_jicofo_config:
eventyay_jitsi_jvb_config:
eventyay_jitsi_web_config: