-
-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (69 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
80 lines (69 loc) · 1.94 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
version: '3.8'
services:
vibravid:
build:
context: .
dockerfile: dockerfile
container_name: vibravid
### Networking
ports:
- "8000:8000"
# Uncomment for custom DNS (e.g., Cloudflare DNS)
# dns:
# - 1.1.1.1
# - 8.8.8.8
networks:
- vibravid_network
### Volumes - Persistent Data
volumes:
# Database persistence
- vibravid_db:/app/GUI
# Downloads persistence
- vibravid_videos:/app/Video
# Logs persistence
- vibravid_logs:/app/logs
# Configuration persistence
- vibravid_config:/app/Conf
### Environment Variables
environment:
DJANGO_DEBUG: "false"
DJANGO_SECRET_KEY: "change-me-to-a-secure-key"
PYTHONUNBUFFERED: "1"
PYTHONPATH: "/app:${PYTHONPATH}"
# Host Configuration
ALLOWED_HOSTS: "localhost,127.0.0.1"
CSRF_TRUSTED_ORIGINS: "http://localhost:8000,http://127.0.0.1:8000"
# Uncomment for private network deployment (behind reverse proxy)
# ALLOWED_HOSTS: "streaming.example.local,localhost,127.0.0.1,192.168.1.50"
# CSRF_TRUSTED_ORIGINS: "https://streaming.example.local"
# USE_X_FORWARDED_HOST: "true"
# SECURE_PROXY_SSL_HEADER_ENABLED: "true"
# CSRF_COOKIE_SECURE: "true"
# SESSION_COOKIE_SECURE: "true"
# Optional: Watchlist Auto-Download Interval (seconds)
# WATCHLIST_AUTO_INTERVAL_SECONDS: "14400"
### Restart Policy
restart: unless-stopped
### Resource Limits (optional)
# deploy:
# resources:
# limits:
# cpus: '2'
# memory: 2G
# reservations:
# cpus: '1'
# memory: 1G
### Persistent Named Volumes
volumes:
vibravid_db:
driver: local
vibravid_videos:
driver: local
vibravid_logs:
driver: local
vibravid_config:
driver: local
### Internal Network
networks:
vibravid_network:
driver: bridge