-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (53 loc) · 1.74 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
version: '3.3'
services:
redis:
image: redis:alpine
command: >
sh -c "redis-server
&& redis-cli CONFIG SET maxmemory 4gb
&& redis-cli CONFIG SET maxmemory-policy allkeys-lru
&& redis-cli CONFIG SET save ''
&& redis-cli CONFIG SET appendonly no"
restart: always
rabbitmq:
image: rabbitmq:alpine
restart: always
app:
image: sherzinger/fractalis:1.3.1
volumes:
- ./config/fractalis/config.py:/config.py
- ./config/fractalis/logging.yaml:/logging.yaml
environment:
- FRACTALIS_CONFIG=/config.py
command: gunicorn -w 3 -b :5000 --timeout 30 --error-logfile - fractalis:app
expose:
- 5000
restart: always
depends_on:
- redis
- rabbitmq
worker:
image: sherzinger/fractalis:1.3.1
volumes:
- ./config/fractalis/config.py:/config.py
- ./config/fractalis/logging.yaml:/logging.yaml
environment:
- FRACTALIS_CONFIG=/config.py
command: celery worker -A fractalis:celery -l warning --autoscale 16,4
restart: always
depends_on:
- redis
- rabbitmq
nginx:
image: nginx:alpine
volumes:
- ./config/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./config/nginx/html:/usr/share/nginx/html
- ./config/nginx/certs/server.crt:/etc/nginx/server.crt
- ./config/nginx/certs/server.key:/etc/nginx/server.key
ports:
- ${FRACTALIS_HTTP_PORT:-80}:80
- ${FRACTALIS_HTTPS_PORT:-443}:443
restart: always
depends_on:
- app