-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
executable file
·63 lines (62 loc) · 1.63 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
version: "3.8"
services:
pdf_paragraphs_extraction_api:
container_name: pdf_paragraphs_extraction_api
entrypoint: [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--chdir", "./src", "app:app", "--bind", "0.0.0.0:5051", "--timeout", "300"]
init: true
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
volumes:
- data:/app/docker_volume
depends_on:
- mongo_paragraphs
- redis_paragraphs
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
networks:
- pdf_paragraphs_extraction_network
ports:
- "5051:5051"
env_file: .env
pdf_paragraphs_extraction_worker:
container_name: pdf_paragraphs_extraction_worker
entrypoint: [ "python", "-m", "src.QueueProcessor" ]
init: true
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
volumes:
- data:/app/docker_volume
depends_on:
- mongo_paragraphs
- redis_paragraphs
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
networks:
- pdf_paragraphs_extraction_network
env_file: .env
mongo_paragraphs:
restart: unless-stopped
command: mongod --port 28017
image: "mongo:4.0.1"
networks:
- pdf_paragraphs_extraction_network
redis_paragraphs:
restart: unless-stopped
image: "redis:5.0.14"
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
networks:
- pdf_paragraphs_extraction_network
ports:
- "6379:6379"
networks:
pdf_paragraphs_extraction_network:
volumes:
data: