-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
89 lines (89 loc) · 1.66 KB
/
compose.yaml
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
services:
nlpdb:
restart: always
image: postgres:15.1
volumes:
- postgres_data_prod:/var/lib/postgresql/data/
expose:
- "5432"
networks:
- back-tier
env_file:
- ./db.env
rabbitmq:
restart: always
image: rabbitmq:3.11
expose:
- "5672"
networks:
- back-tier
document-store:
restart: always
image: mongo:5.0.15
ports:
- "27017:27017"
networks:
- back-tier
volumes:
- mongo_data:/data/db
env_file:
- ./db.env
app:
restart: always
build:
context: .
target: nlpapp
dockerfile: ./docker/python/Dockerfile
command: gunicorn -w 4 --bind 0.0.0.0:5000 'nlp4all:create_app()'
volumes:
- static_volume:/home/app/nlp4all/static
expose:
- "5000"
env_file:
- ./db.env
- ./app.env
networks:
- front-tier
- back-tier
depends_on:
- nlpdb
- rabbitmq
- worker
- document-store
worker:
restart: always
build:
context: .
target: nlpapp
dockerfile: ./docker/python/Dockerfile
command: celery -A make_celery worker -l info
volumes:
- ./nlp4all:/home/app/nlp4all
env_file:
- ./db.env
- ./app.env
networks:
- back-tier
depends_on:
- nlpdb
- rabbitmq
- document-store
web:
restart: always
build:
context: ./docker/nginx/
ports:
- "80:80"
networks:
- front-tier
depends_on:
- app
volumes:
- static_volume:/home/app/nlp4all/static
networks:
front-tier: {}
back-tier: {}
volumes:
postgres_data_prod:
static_volume:
mongo_data: