-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 2.2 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
version: '3.3'
services:
web:
image: openframing_web_image
restart: always
build:
context: ./services/web
expose:
- "5000"
volumes:
- project_data_volume:/home/app/project_data_directory
- transformers_cache_volume:/home/app/transformers_cache_directory
depends_on:
- redis
environment: # Pass down from .env file, and from the environment
- REDIS_HOST
- REDIS_PORT
- SENDGRID_API_KEY
- SENDGRID_FROM_EMAIL
- SERVER_NAME
nginx:
build: ./services/nginx
restart: always
volumes:
- ./services/web/frontend:/home/app/frontend
ports:
- "80:80"
depends_on:
- web
redis:
image: redis:6.0.5-alpine
restart: always
command: "redis-server --port ${REDIS_PORT}"
expose:
- "${REDIS_PORT}"
classifiers_worker:
image: openframing_web_image
restart: always
command: [ "rq", "worker", "--url", "redis://${REDIS_HOST}:${REDIS_PORT}", "classifiers" ]
depends_on:
- redis
volumes:
- project_data_volume:/home/app/project_data_directory
- transformers_cache_volume:/home/app/transformers_cache_directory
environment: # Pass down from .env file
- REDIS_HOST
- REDIS_PORT
- SENDGRID_API_KEY
- SENDGRID_FROM_EMAIL
- SERVER_NAME
# We need to pass them here, in addition to `command` above, because the
# worker will import settings.py, which needs them to be set.
topic_model_worker:
image: openframing_web_image
restart: always
command: [ "rq", "worker", "--url", "redis://${REDIS_HOST}:${REDIS_PORT}", "topic_models" ]
depends_on:
- redis
volumes:
- project_data_volume:/home/app/project_data_directory
- transformers_cache_volume:/home/app/transformers_cache_directory
environment:
- REDIS_HOST
- REDIS_PORT
- SENDGRID_API_KEY
- SENDGRID_FROM_EMAIL
- SERVER_NAME
# We need to pass them here, in addition to `command` above, because the
# We need to pass them here, in addition to `command` above, because the
# worker will import settings.py, which needs them to be set.
volumes:
project_data_volume:
transformers_cache_volume: