-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.02 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
# Simple PDF — docker compose up --build
# UI: http://localhost:8080
#
# Optional: cp .env.example .env
# Dev (bind-mount code): docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
services:
app:
build: .
ports:
- "8080:8000"
environment:
PDF_EDITOR_HOST: "0.0.0.0"
PDF_EDITOR_PORT: "8000"
PDF_EDITOR_UPLOADS: /app/uploads
PDF_EDITOR_OCR_LANG: ${PDF_EDITOR_OCR_LANG:-eng}
PDF_EDITOR_OCR_MAX_CONCURRENT: ${PDF_EDITOR_OCR_MAX_CONCURRENT:-1}
PDF_EDITOR_AUTH_ENABLED: ${PDF_EDITOR_AUTH_ENABLED:-0}
PDF_EDITOR_SECRET_KEY: ${PDF_EDITOR_SECRET_KEY:-}
env_file:
- path: .env
required: false
volumes:
- ./uploads:/app/uploads
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=5)",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s