-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.min.yml
More file actions
91 lines (86 loc) · 2.02 KB
/
docker-compose.min.yml
File metadata and controls
91 lines (86 loc) · 2.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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3.8'
services:
llm-orchestrator-min:
build:
context: ./containers/llm-orchestrator-min
args: {}
cache_from:
- llm-orchestrator-min:latest
container_name: llm-orchestrator-min
volumes:
- ./volumes/models:/app/models
- ./volumes/config:/app/config
- pip-cache:/root/.cache/pip
- models-cache:/app/models/tinyllama
- wheel-cache:/root/.cache/pip/wheels
environment:
- USE_INT8=true
- PYTHONUNBUFFERED=1
- FLASK_ENV=production
- PIP_CACHE_DIR=/root/.cache/pip
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
restart: unless-stopped
ports:
- "5000:5000" # API LLM
networks:
- autoformfiller-min-network
browser-service:
build:
context: ./containers/browser-service
args: {}
cache_from:
- browser-service:latest
container_name: browser-service
volumes:
- ./volumes/recordings:/app/recordings
- pip-cache:/root/.cache/pip
- wheel-cache:/root/.cache/pip/wheels
- chrome-cache:/root/.cache/google-chrome
environment:
- DISPLAY=:99
- PYTHONUNBUFFERED=1
- PIP_CACHE_DIR=/root/.cache/pip
deploy:
resources:
limits:
memory: 1G
restart: unless-stopped
ports:
- "5900:5900" # VNC
networks:
- autoformfiller-min-network
novnc:
build:
context: ./containers/novnc
args: {}
cache_from:
- novnc:latest
container_name: novnc
deploy:
resources:
limits:
memory: 256M
restart: unless-stopped
ports:
- "8080:8080" # noVNC Web UI
networks:
- autoformfiller-min-network
depends_on:
- browser-service
networks:
autoformfiller-min-network:
driver: bridge
volumes:
pip-cache:
name: coboarding-pip-cache
wheel-cache:
name: coboarding-wheel-cache
models-cache:
name: coboarding-models-cache
chrome-cache:
name: coboarding-chrome-cache