-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathdocker-compose.ai-desktop.yml
More file actions
62 lines (58 loc) · 1.48 KB
/
docker-compose.ai-desktop.yml
File metadata and controls
62 lines (58 loc) · 1.48 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
version: '3.8'
services:
ai-desktop:
build:
context: ./docker/ai-desktop
dockerfile: Dockerfile
container_name: Coasty-ai-desktop
environment:
- VNC_PASSWORD=Coasty123
- VNC_RESOLUTION=1920x1080
- VNC_COL_DEPTH=24
- USER_ID=test-user
- SESSION_ID=test-session
- AGENT_HOST=0.0.0.0
- AGENT_PORT=8080
ports:
- "5901:5901" # VNC port
- "6080:6080" # noVNC web port
- "8081:8080" # AI Agent WebSocket server (mapped to 8081 to avoid conflict with nginx)
volumes:
- desktop-home:/home/desktop
networks:
- Coasty-network
restart: unless-stopped
shm_size: '2gb' # Shared memory for Chrome/Firefox
cap_add:
- SYS_ADMIN # Required for Chrome sandbox
security_opt:
- apparmor:unconfined # Required for Chrome
# Resource limits
deploy:
resources:
limits:
cpus: '2'
memory: 4G
reservations:
cpus: '1'
memory: 2G
# Optional: Nginx proxy for secure WebSocket connections
# Commented out by default to avoid port conflicts
# nginx-proxy:
# image: nginx:alpine
# container_name: Coasty-vnc-proxy
# volumes:
# - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
# ports:
# - "8080:80"
# - "8443:443"
# depends_on:
# - ai-desktop
# networks:
# - Coasty-network
volumes:
desktop-home:
driver: local
networks:
Coasty-network:
driver: bridge