forked from rivenmedia/riven
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (71 loc) · 2.16 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
services:
# riven-frontend:
# image: spoked/riven-frontend:latest
# container_name: riven-frontend
# restart: unless-stopped
# tty: true
# environment:
# - TZ=Etc/UTC
# ports:
# - 3000:3000
# volumes:
# - /path/to/riven/frontend:/riven/config # You need to mount a config directory here (different from riven)
# depends_on:
# riven:
# condition: service_started
riven:
image: spoked/riven:latest
container_name: riven
restart: unless-stopped
ports:
- "8080:8080"
tty: true
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
shm_size: 1024m
devices:
- /dev/fuse
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- RIVEN_FORCE_ENV=true
- RIVEN_DATABASE_HOST=postgresql+psycopg2://postgres:postgres@riven-db/riven
healthcheck:
test: curl -s http://localhost:8080 >/dev/null || exit 1
interval: 30s
timeout: 10s
retries: 10
volumes:
- /path/to/riven/data:/riven/data
- /path/to/riven/mount:/mount:rshared,z
depends_on:
riven_postgres:
condition: service_healthy
riven_postgres:
image: postgres:17-alpine
container_name: riven-db
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=riven
volumes:
- /path/to/riven/db:/var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
restart: unless-stopped
ports:
- "8096:8096"
volumes:
- /path/to/jellyfin/config:/config
- /path/to/riven/mount:/mount:rslave,z