Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (58 loc) · 1.83 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·63 lines (58 loc) · 1.83 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
services:
cross-references-predictor:
container_name: cross-references-predictor
entrypoint: [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--chdir", "./src", "cross_references_predictor.drivers.rest.app:app", "--bind", "0.0.0.0:5070", "--timeout", "10000"]
init: true
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
environment:
- POSTGRES_HOST=localhost
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_DB=references_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PDF_ANALYSIS_SERVICE_URL=http://localhost:5060
- OLLAMA_API_KEY=${OLLAMA_API_KEY}
network_mode: host
depends_on:
- postgres
pdf-layout-analysis:
container_name: "pdf-layout-analysis"
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.32
init: true
restart: unless-stopped
network_mode: host
gradio-ui:
container_name: gradio-ui
build:
context: .
dockerfile: Dockerfile.gradio
restart: unless-stopped
network_mode: host
depends_on:
- cross-references-predictor
postgres:
container_name: postgres
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: references_db
PGPORT: ${POSTGRES_PORT:-5432}
network_mode: host
volumes:
- postgres_data:/var/lib/postgresql/data
adminer:
container_name: adminer
image: adminer:4
restart: unless-stopped
network_mode: host
environment:
ADMINER_PORT: ${ADMINER_PORT:-8080}
entrypoint: php -S 0.0.0.0:${ADMINER_PORT:-8080} -t /var/www/html
volumes:
postgres_data: