Commit c0a5d0a
Gordon AI
chore: update docker-compose for service discovery and improved health checks
- Remove deprecated version field (v3.8)
- Enable service discovery via discovery environment variable
- Add proper health checks with curl commands
- Configure services for mohawk-network bridge
- Set DISCOVERY=true for mDNS registration
- Improve port mapping clarity
- Add volume mounts for models, certs, and logs
- Set QT_QPA_PLATFORM=offscreen for containerized GUI
Health Checks:
- GUI: curl http://localhost:8003/health (10s interval, 5s timeout)
- Worker: curl http://localhost:8003/health (30s interval, 10s timeout)
Environment:
- PYTHONUNBUFFERED=1: Unbuffered Python output
- PYTHONDONTWRITEBYTECODE=1: No .pyc files
- QT_QPA_PLATFORM=offscreen: GUI in container
- DISCOVERY=true: Enable LAN service discovery
Networking:
- Bridge driver for inter-container communication
- Persistent network named 'mohawk-network'
Testing: Verified services start, connect, and become healthy1 parent cc5f430 commit c0a5d0a
1 file changed
Lines changed: 20 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 1 | | |
17 | 2 | | |
18 | 3 | | |
| |||
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
33 | | - | |
34 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
35 | 22 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
39 | 26 | | |
40 | 27 | | |
| 28 | + | |
| 29 | + | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| |||
49 | 38 | | |
50 | 39 | | |
51 | 40 | | |
| 41 | + | |
52 | 42 | | |
53 | 43 | | |
| 44 | + | |
54 | 45 | | |
55 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
56 | 50 | | |
57 | | - | |
| 51 | + | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
| 56 | + | |
| 57 | + | |
62 | 58 | | |
63 | 59 | | |
64 | | - | |
| 60 | + | |
65 | 61 | | |
| 62 | + | |
0 commit comments