-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
49 lines (43 loc) · 1.26 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
version: '3.9'
services:
stemmarest:
image: dhuniwien/stemmarest:latest
stemweb_mysql:
container_name: stemweb_mysql
image: mariadb:10.4
restart: always
env_file:
- stemweb/.env.prod
stemweb_redis:
container_name: stemweb_redis
image: redis:alpine
restart: always
sysctls:
# change this Linux Kernel Parameter (default is 128) within container because of this WARNING
# "The TCP backlog setting of 511 cannot be enforced
# because /proc/sys/net/core/somaxconn is set to the lower value of 128."
net.core.somaxconn: 512 # maximal number of connections
volumes:
- ./stemweb/redis/redis.conf:/usr/local/etc/redis/redis.conf # version 6 from https://redis.io/topics/config
command:
redis-server /usr/local/etc/redis/redis.conf
stemweb:
container_name: stemweb
image: dhuniwien/stemweb_py37:latest
restart: always
env_file:
- stemweb/.env.prod
depends_on:
- stemweb_mysql
- stemweb_redis
stemmaweb:
build: .
depends_on:
- stemmarest
- stemweb
env_file:
- .env.prod
volumes:
- ./frontend/config/env.js.prod:/usr/src/app/stemmaweb_middleware/stemmaweb/src/js/env.js
ports:
- "3000:${GUNICORN_PORT:-3000}"