-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 908 Bytes
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
services:
backend:
build: ./backend
container_name: docmanager-backend
restart: unless-stopped
environment:
- SECRET_KEY=change-me-to-a-random-secret-in-production
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin123
- DATABASE_URL=sqlite:////app/data/documents.db
volumes:
- backend-data:/app/data
- backend-uploads:/app/uploads
ports:
- "8000:8000"
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')",
]
interval: 10s
timeout: 5s
retries: 3
frontend:
build: ./frontend
container_name: docmanager-frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
volumes:
backend-data:
backend-uploads: