-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.45 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
services:
flexerr:
build: .
container_name: flexerr
restart: unless-stopped
ports:
- "5505:5505"
volumes:
- flexerr-data:/app/data
# Optional: Mount your media folder for direct file operations
# - /path/to/your/media:/media
environment:
- TZ=${TZ:-UTC}
- PORT=5505
- NODE_ENV=production
# Optional: Set a fixed JWT secret (auto-generated if not set)
# - JWT_SECRET=your-secret-here
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5505/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# ============================================
# GPU ACCESS FOR HARDWARE-ACCELERATED ENCODING
# ============================================
# Uncomment ONE of the following GPU configurations:
# --- NVIDIA GPU (RTX/GTX cards with NVENC) ---
# Requires: NVIDIA Container Toolkit installed on host
# Install: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
# --- AMD/Intel GPU (VAAPI) ---
# devices:
# - /dev/dri:/dev/dri
# group_add:
# - "44" # video group
# - "107" # render group (may vary by system, check: getent group render)
volumes:
flexerr-data:
name: flexerr-data