-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
66 lines (61 loc) · 1.29 KB
/
docker-compose.dev.yml
File metadata and controls
66 lines (61 loc) · 1.29 KB
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
version: "3.7"
services:
text-classification:
container_name: text-classification
depends_on:
- redis
- db
build:
context: .
dockerfile: ./Dockerfile
target: dev
args:
DATABASE__CREATE: "True"
SENDGRID_API_KEY: "${SENDGRID_API_KEY}"
networks:
- shared
volumes:
- ./:/app
ports:
- "5000:5000"
command: ["python", "-m", "app"]
redis:
container_name: redis
image: redis:4.0.11-alpine
networks:
- shared
restart: always
init: true
stop_grace_period: 30s
celery:
depends_on:
- redis
container_name: celery-worker
volumes:
- ./:/app
build:
context: .
dockerfile: ./Dockerfile
target: dev
args:
DATABASE__CREATE: "False"
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
command: celery -A celery_worker.celery worker -l INFO
networks:
- shared
db:
image: postgres
container_name: postgres_development
environment:
POSTGRES_USER: "postgres_development"
POSTGRES_PASSWORD: "dbs_development"
POSTGRES_DB: "text_classification_development"
ports:
- 5432:5432
restart: always
init: true
networks:
- shared
networks:
shared:
name: shared-network