forked from morpheus65535/bazarr
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (95 loc) · 3.21 KB
/
docker-compose.yml
File metadata and controls
110 lines (95 loc) · 3.21 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
# =============================================================================
# Bazarr LavX Fork - Docker Compose
# =============================================================================
# Production deployment configuration with OpenSubtitles.org Scraper
#
# Usage:
# docker compose up -d
#
# Environment variables can be set in a .env file or directly in the environment
# =============================================================================
services:
# OpenSubtitles.org Scraper Service (required for the fork's custom provider)
opensubtitles-scraper:
build:
context: ./opensubtitles-scraper
dockerfile: Dockerfile
image: ghcr.io/lavx/opensubtitles-scraper:latest
container_name: opensubtitles-scraper
restart: unless-stopped
ports:
- "${SCRAPER_PORT:-8000}:8000"
environment:
- DEBUG=${SCRAPER_DEBUG:-false}
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- bazarr-network
bazarr:
image: ghcr.io/lavx/bazarr:latest
container_name: bazarr
restart: unless-stopped
depends_on:
opensubtitles-scraper:
condition: service_healthy
ports:
- "${BAZARR_PORT:-6767}:6767"
environment:
# User/Group ID for file permissions
# Match these to your media user on the host
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
# Timezone (e.g., Europe/Budapest, America/New_York)
- TZ=${TZ:-UTC}
# OpenSubtitles Scraper Configuration
# Enable the web scraper for OpenSubtitles.org (bypasses API/VIP requirement)
- OPENSUBTITLES_USE_WEB_SCRAPER=true
# Scraper service URL - points to the scraper container
- OPENSUBTITLES_SCRAPER_URL=http://opensubtitles-scraper:8000
volumes:
# Configuration directory - contains database, logs, and settings
- ${CONFIG_PATH:-./config}:/config
# Media directories - adjust paths to match your setup
# Movies library
- ${MOVIES_PATH:-/path/to/movies}:/movies
# TV Shows library
- ${TV_PATH:-/path/to/tv}:/tv
# Optional: Additional media paths
# - /path/to/anime:/anime
# - /path/to/downloads:/downloads
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6767/api/system/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- bazarr-network
# Optional: Resource limits
# deploy:
# resources:
# limits:
# cpus: '2.0'
# memory: 2G
# reservations:
# cpus: '0.5'
# memory: 512M
networks:
bazarr-network:
driver: bridge
# =============================================================================
# Example .env file contents:
# =============================================================================
# BAZARR_PORT=6767
# SCRAPER_PORT=8000
# PUID=1000
# PGID=1000
# TZ=Europe/Budapest
# CONFIG_PATH=./config
# MOVIES_PATH=/mnt/media/movies
# TV_PATH=/mnt/media/tv
# =============================================================================