-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
202 lines (194 loc) · 8.35 KB
/
docker-compose.yml
File metadata and controls
202 lines (194 loc) · 8.35 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
services:
frontend:
build:
context: ./frontend
container_name: vibenvr-frontend
ports:
- "${VIBENVR_FRONTEND_PORT:-8080}:80"
volumes:
- ./frontend:/app
- /app/node_modules
- ${VIBENVR_DATA:-vibenvr_data}:/data
networks:
- vibe-network
depends_on:
- backend
restart: unless-stopped
init: true
privileged: false # Set to true for Proxmox/OMV/LXC if you see permission errors
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: vibenvr-backend
privileged: false # Set to true for Proxmox/OMV/LXC if you see permission errors
restart: unless-stopped
init: true
ports:
- "${VIBENVR_BACKEND_PORT:-5005}:5000"
volumes:
- ./backend:/app
- ./frontend/package.json:/app/package.json
- ${VIBENVR_DATA:-vibenvr_data}:/data
# Custom Storage Profiles (uncomment to enable)
# - ${VIBENVR_STORAGE_SSD}:/storage/ssd
# - ${VIBENVR_STORAGE_NAS}:/storage/nas
environment:
- POSTGRES_USER=${POSTGRES_USER:-vibenvr}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-vibenvrpass}
- POSTGRES_DB=${POSTGRES_DB:-vibenvr}
- DATABASE_URL=postgresql://${POSTGRES_USER:-vibenvr}:${POSTGRES_PASSWORD:-vibenvrpass}@db:5432/${POSTGRES_DB:-vibenvr}
- TZ=Europe/Rome
- SECRET_KEY=${SECRET_KEY:-vibe_secure_key_9823748923748923_change_in_prod}
- WEBHOOK_SECRET=${WEBHOOK_SECRET:-vibe_secure_key_9823748923748923_change_in_prod}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
- COOKIE_SECURE=${COOKIE_SECURE:-true}
entrypoint: [ "/bin/sh", "./entrypoint.sh" ]
stop_grace_period: 30s
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.depends-on=engine,db"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- vibe-network
# ─────────────────────────────────────────────────────────────────────────
# TROUBLESHOOTING: Permission Errors on Proxmox/PVE Kernel, Synology, QNAP
# ─────────────────────────────────────────────────────────────────────────
# If you see errors like "PermissionError: [Errno 13] Permission denied"
# or "could not create Unix socket", try these options in order:
#
# Option 1: Disable seccomp and AppArmor
# security_opt:
# - seccomp:unconfined
# - apparmor:unconfined
#
# Option 2: If Option 1 doesn't work, use privileged mode
# privileged: true
# ─────────────────────────────────────────────────────────────────────────
depends_on:
- engine
- db
engine:
build:
context: ./engine
container_name: vibenvr-engine
restart: unless-stopped
init: true
shm_size: '512mb'
# Security: engine API is internal only — no host port exposure.
# Backend communicates via Docker DNS: http://engine:8000
# Uncomment the lines below ONLY for local debugging:
# ports:
# - "5001:8000"
expose:
- "8000"
volumes:
- ./engine:/app
- ${VIBENVR_DATA:-vibenvr_data}:/var/lib/vibe/recordings
# Custom Storage Profiles (uncomment to enable)
# - ${VIBENVR_STORAGE_SSD}:/storage/ssd
# - ${VIBENVR_STORAGE_NAS}:/storage/nas
# - /etc/localtime:/etc/localtime:ro # Removed for cross-platform compatibility, use TZ
environment:
- BACKEND_URL=http://vibenvr-backend:5000
- TZ=Europe/Rome
# Hardware Acceleration Settings
- HW_ACCEL=${HW_ACCEL:-false} # Set to 'true' on Linux with GPU access
- HW_ACCEL_TYPE=${HW_ACCEL_TYPE:-auto} # auto, nvidia, intel, amd
- WEBHOOK_SECRET=${WEBHOOK_SECRET:-vibe_secure_key_9823748923748923_change_in_prod}
# GPU Device Passthrough (uncomment what applies to your system)
# For Intel/AMD (VAAPI) on Linux:
devices:
- /dev/dri:/dev/dri
# For NVIDIA (requires nvidia-container-toolkit):
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
entrypoint: [ "/bin/sh", "./entrypoint.sh" ]
stop_grace_period: 30s
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.depends-on=db"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Fix for Proxmox/pve kernel: socket.socketpair() Permission denied
security_opt:
- seccomp:unconfined
- apparmor:unconfined
privileged: false # Set to true for Proxmox/OMV/LXC if you see permission errors
networks:
- vibe-network
# ─────────────────────────────────────────────────────────────────────────
# TROUBLESHOOTING: Permission Errors on Proxmox/PVE Kernel, Synology, QNAP
# ─────────────────────────────────────────────────────────────────────────
# If you see errors like "PermissionError: [Errno 13] Permission denied"
# or "socket.socketpair() Permission denied", try these options in order:
#
# Option 1: Disable seccomp and AppArmor
# security_opt:
# - seccomp:unconfined
# - apparmor:unconfined
#
# Option 2: If Option 1 doesn't work, use privileged mode
# privileged: true
# ─────────────────────────────────────────────────────────────────────────
db:
image: postgres:15-alpine
container_name: vibenvr-db
restart: always
init: true
# Fix for Proxmox/pve kernel: Unix socket Permission denied
security_opt:
- seccomp:unconfined
- apparmor:unconfined
privileged: false # Set to true for Proxmox/OMV/LXC if you see permission errors
environment:
- POSTGRES_USER=${POSTGRES_USER:-vibenvr}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-vibenvrpass}
- POSTGRES_DB=${POSTGRES_DB:-vibenvr}
volumes:
- ${VIBENVR_DB_DATA:-vibenvr_db_data}:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U vibenvr" ]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
networks:
- vibe-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# ─────────────────────────────────────────────────────────────────────────
# TROUBLESHOOTING: Permission Errors on Proxmox/PVE Kernel, Synology, QNAP
# ─────────────────────────────────────────────────────────────────────────
# If you see errors like "could not create Unix socket" or
# "could not create any Unix-domain sockets", try these options in order:
#
# Option 1: Disable seccomp and AppArmor
# security_opt:
# - seccomp:unconfined
# - apparmor:unconfined
#
# Option 2: If Option 1 doesn't work, use privileged mode
# privileged: true
# ─────────────────────────────────────────────────────────────────────────
volumes:
vibenvr_data:
vibenvr_db_data:
networks:
vibe-network:
driver: bridge