-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose-full.yml
144 lines (132 loc) · 4.25 KB
/
docker-compose-full.yml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# This is a full setup for Riven with Plex, Overseerr, and Zilean.
# This compose assumes you already setup rclone and zurg. See notes below!
## Notes:
# Zurg & Rclone will have to be supplied as well and visible to Riven as well as Plex.
# Rclone should be mounted to: /mnt/zurg (optional directory)
# You will need to set the rclone_path in riven to use the `/mnt/zurg/__all__` dir though
# so that Riven can see all the torrents from their parent directory.
services:
riven-frontend:
image: spoked/riven-frontend:latest
container_name: riven-frontend
restart: unless-stopped
ports:
- "3000:3000"
tty: true
environment:
- PUID=1000
- PGID=1000
- ORIGIN=http://localhost:3000 # Set to IP or FQDN of the server
- BACKEND_URL=http://riven:8080
- DIALECT=postgres
- DATABASE_URL=postgres://postgres:postgres@riven-db/riven
- TZ=America/New_York
depends_on:
riven:
condition: service_healthy
riven:
image: spoked/riven:latest
container_name: riven
restart: unless-stopped
ports:
- "8080:8080"
tty: true
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- RIVEN_FORCE_ENV=true # forces the use of env vars to be always used!
- RIVEN_SYMLINK_RCLONE_PATH=/mnt/zurg/__all__ # Set this to your rclone's mount `__all__` dir if using Zurg
- RIVEN_SYMLINK_LIBRARY_PATH=/mnt/library # This is the path that symlinks will be placed in
- RIVEN_DATABASE_HOST=postgresql+psycopg2://postgres:postgres@riven-db/riven
- RIVEN_DOWNLOADERS_REAL_DEBRID_ENABLED=true
- RIVEN_DOWNLOADERS_REAL_DEBRID_API_KEY=xxxxx # set your real debrid api key
- RIVEN_UPDATERS_PLEX_ENABLED=true
- RIVEN_UPDATERS_PLEX_URL=http://plex:32400
- RIVEN_UPDATERS_PLEX_TOKEN=xxxxx # set your plex token
- RIVEN_CONTENT_OVERSEERR_ENABLED=true
- RIVEN_CONTENT_OVERSEERR_URL=http://overseerr:5055
- RIVEN_CONTENT_OVERSEERR_API_KEY=xxxxx # set your overseerr token
- RIVEN_SCRAPING_TORRENTIO_ENABLED=true
- RIVEN_SCRAPING_ZILEAN_ENABLED=true
- RIVEN_SCRAPING_ZILEAN_URL=http://zilean:8181
healthcheck:
test: curl -s http://localhost:8080 >/dev/null || exit 1
interval: 30s
timeout: 10s
retries: 10
volumes:
- ./data:/riven/data
- /mnt:/mnt
depends_on:
riven_postgres:
condition: service_healthy
riven_postgres:
image: postgres:16.3-alpine3.20
container_name: riven-db
restart: unless-stopped
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: riven
volumes:
- ./riven-db:/var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
## Plex (optional media server)
plex:
image: plexinc/pms-docker:latest
container_name: plex
restart: unless-stopped
ports:
- "32400:32400"
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- VERSION=docker
volumes:
- ./config:/config
- /mnt:/mnt
devices:
- "/dev/dri:/dev/dri"
## Overseerr (optional content service)
overseerr:
image: lscr.io/linuxserver/overseerr:latest
container_name: overseerr
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./config:/config
ports:
- 5055:5055
## Zilean (optional scraper service)
zilean:
image: ipromknight/zilean:latest
container_name: zilean
restart: unless-stopped
ports:
- "8181:8181"
volumes:
- zilean_data:/app/data
environment:
# You may have to create the zilean database manually with the following command:
# docker exec -it riven-db createdb -U postgres -W zilean
Zilean__Database__ConnectionString: "Host=riven-db;Port=5432;Database=zilean;Username=postgres;Password=postgres"
healthcheck:
test: curl --connect-timeout 10 --silent --show-error --fail http://localhost:8181/healthchecks/ping
timeout: 60s
interval: 30s
retries: 10
depends_on:
riven_postgres:
condition: service_healthy
volumes:
zilean_data: