-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
executable file
·81 lines (74 loc) · 1.97 KB
/
docker-compose-test.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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:-}
networks:
- network-pdf-layout
ports:
- "5051:5051"
env_file: .env_test
depends_on:
- mongo-pdf-layout
queue-processor-pdf-layout:
container_name: "queue-processor-pdf-layout"
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:-}
networks:
- network-pdf-layout
env_file: .env_test
depends_on:
- mongo-pdf-layout
worker-pdf-layout:
container_name: "worker-pdf-layout"
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
ports:
- "5060:5060"
networks:
- network-pdf-layout
volumes:
- data:/app/xmls
mongo-pdf-layout:
container_name: "mongo-pdf-layout"
restart: unless-stopped
command: mongod --port 25017
image: "mongo:7.0.12"
networks:
- network-pdf-layout
redis-pdf-layout:
container_name: redis-pdf-layout
restart: unless-stopped
image: "redis:7.2.5"
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
networks:
- network-pdf-layout
ports:
- "6379:6379"
networks:
network-pdf-layout:
driver: bridge
volumes:
data: