-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.development.yaml
76 lines (76 loc) · 1.58 KB
/
compose.development.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
services:
db-dev:
restart: always
image: postgres:15.2
volumes:
- postgres_data_dev:/var/lib/postgresql/data/
ports:
- "5432:5432"
networks:
- back-tier
env_file:
- ./db.dev.env
document-store-dev:
restart: always
image: mongo:5.0.15
ports:
- "27017:27017"
networks:
- back-tier
volumes:
- mongo_data_dev:/data/db
env_file:
- ./db.dev.env
rabbitmq-dev:
restart: always
image: rabbitmq:3.11
expose:
- "5672"
networks:
- back-tier
app-dev:
restart: always
build:
context: .
target: nlpapp-dev
dockerfile: ./docker/python/Dockerfile
command: ./run-nlp4all.sh
volumes:
- ./nlp4all:/home/app/nlp4all
ports:
- "5000:5000"
- "5678:5678"
env_file: # variables defined here cannot be referenced in compose.yml
- ./db.dev.env
- ./app.dev.env
networks:
- front-tier
- back-tier
depends_on:
- db-dev
- worker-dev
- document-store-dev
worker-dev:
restart: always
build:
context: .
target: nlpapp-dev
dockerfile: ./docker/python/Dockerfile
command: bash -c "watchmedo auto-restart --recursive --pattern='*.py' -- celery -A make_celery worker -l info"
volumes:
- ./nlp4all:/home/app/nlp4all
env_file:
- ./db.dev.env
- ./app.dev.env
networks:
- back-tier
depends_on:
- db-dev
- rabbitmq-dev
- document-store-dev
networks:
front-tier: {}
back-tier: {}
volumes:
postgres_data_dev:
mongo_data_dev: