-
Notifications
You must be signed in to change notification settings - Fork 7
/
local-docker-compose.yml
executable file
·44 lines (44 loc) · 1.22 KB
/
local-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
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
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
- WEB_CONCURRENCY=2
network_mode: 'host'
env_file: .env.local
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
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
network_mode: 'host'
env_file: .env.local
mongo_paragraphs:
restart: unless-stopped
command: mongod --port 28017
image: "mongo:4.0.1"
network_mode: 'host'
volumes:
data: