-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.52 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
# =============================================================================
# Thrive Stream Controller - Docker Compose
# =============================================================================
#
# SETUP:
# 1. Copy .env.example to .env
# 2. Fill in your secrets in .env
# 3. Run: docker-compose up -d
#
# Usage:
# docker-compose up -d # Start in background
# docker-compose up --build -d # Rebuild and start
# docker-compose logs -f # View logs
# docker-compose down # Stop and remove
#
# Access the app at: http://localhost:8080
#
# Note: OBS must be running on the host machine with WebSocket enabled.
# The container connects to OBS via host.docker.internal:4455
# =============================================================================
services:
thrive-stream-controller:
build:
context: .
dockerfile: Dockerfile
container_name: thrive-stream-controller
ports:
- "8080:8080"
volumes:
# Persist database and logs outside the container
- ./docker-data:/app/data
- ./docker-logs:/app/logs
env_file:
# Load environment variables from .env file
# Copy .env.example to .env and fill in your values
- .env
extra_hosts:
# Allows container to reach services on the host machine
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/obs/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s