-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·56 lines (52 loc) · 1.55 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
services:
api-pdf-layout:
container_name: "api-pdf-layout"
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/data
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
- PYTHONUNBUFFERED=1
network_mode: host
depends_on:
- mongo-pdf-layout
queue-processor-pdf-layout-gpu:
container_name: "queue-processor-pdf-layout-gpu"
entrypoint: [ "python", "-m", "src.start_queue_processor" ]
init: true
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
volumes:
- data:/app/data
environment:
- ENVIRONMENT=${ENVIRONMENT:-development}
- SENTRY_DSN=${SENTRY_DSN:-}
- PYTHONUNBUFFERED=1
network_mode: host
depends_on:
- mongo-pdf-layout
worker-pdf-layout-gpu:
container_name: "worker-pdf-layout-no-gpu"
entrypoint: [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--chdir", "./src", "app:app", "--bind", "0.0.0.0:5060", "--timeout", "10000"]
image: ghcr.io/huridocs/pdf-document-layout-analysis:0.0.21
init: true
restart: unless-stopped
network_mode: host
volumes:
- data:/app/xmls
mongo-pdf-layout:
container_name: "mongo-pdf-layout"
restart: unless-stopped
command: mongod --port 25017
image: "mongo:7.0.12"
network_mode: host
volumes:
data: