-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.65 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
# file: docker-compose.yml
# Docker Compose configuration for Subtitle Manager
# Copy .env.example to .env and customize your settings
services:
subtitle-manager:
image: ghcr.io/jdfalk/subtitle-manager:latest
container_name: subtitle-manager
restart: unless-stopped
ports:
- "8080:8080"
volumes:
# Configuration and database storage
- ./config:/config
# Media libraries (adjust paths as needed)
- /path/to/your/movies:/media/movies:ro
- /path/to/your/tv:/media/tv:ro
# Optional: Custom subtitle storage location
- ./subtitles:/subtitles
# Optional: allow container to launch Whisper service
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
environment:
# Core configuration - these override .env file if set
- SM_CONFIG_FILE=/config/subtitle-manager.yaml
- SM_DB_PATH=/config/subtitle-manager.db
- SM_LOG_LEVEL=info
# Performance settings for Docker deployment
- SM_BATCH_WORKERS=4
- SM_SCAN_WORKERS=4
# Enable Whisper ASR service
# - ENABLE_WHISPER=1
# Optional: Automatic admin user creation on first run
# - SM_ADMIN_USER=admin
# - SM_ADMIN_PASSWORD=changeme
# Healthcheck to ensure container is working
healthcheck:
test:
[
"CMD",
"sh",
"-c",
"PORT=$${SM_HTTP_PORT:-8080} && wget --quiet --tries=1 --spider http://localhost:$$PORT/api/system",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Define custom networks for isolation
networks:
default:
name: subtitle-manager-network