-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (60 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (60 loc) · 1.42 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
services:
mohawk-gui:
build:
context: .
dockerfile: Dockerfile
container_name: mohawk-gui
ports:
- "8003:8003"
- "8443:8443"
volumes:
- ./mohawk_gui:/app/mohawk_gui
- ./certs:/app/certs
- ./logs:/app/logs
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- QT_QPA_PLATFORM=offscreen
- DISCOVERY=true
command: >
python -m uvicorn prototype.gui_backend:app
--host 0.0.0.0 --port 8003
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8003/health"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
networks:
- mohawk-network
mohawk-worker:
build:
context: .
dockerfile: Dockerfile.worker
container_name: mohawk-worker
ports:
- "8004:8003"
volumes:
- ./models:/app/models
- ./certs:/app/certs
- ./logs:/app/logs
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- QT_QPA_PLATFORM=offscreen
- DISCOVERY=true
command: >
python -m uvicorn prototype.worker_secure:app
--host 0.0.0.0 --port 8003
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8003/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
networks:
- mohawk-network
networks:
mohawk-network:
name: mohawk-network
driver: bridge