-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
80 lines (74 loc) · 2.65 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
80 lines (74 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# FakeNotify Docker Compose Examples
#
# Recommended pattern: run fakenotify as a sidecar container in the SAME
# compose file as your consumer. The daemon entrypoint publishes the
# preload library + socket into a shared named volume; consumer
# containers mount the volume and point LD_PRELOAD + FAKENOTIFY_SOCKET
# at it. No host install required.
#
# Watch paths are configured in fakenotify.toml (mounted into the
# sidecar at /etc/fakenotify/config.toml). The daemon polls those
# host paths via the bind mounts below.
services:
fakenotify:
image: ghcr.io/zachhandley/fakenotify:latest
container_name: fakenotify
restart: unless-stopped
volumes:
- fakenotify-share:/fakenotify
- ./fakenotify.toml:/etc/fakenotify/config.toml:ro
- /mnt/media:/media:ro
- /mnt/downloads:/downloads:ro
command: ["start", "--config", "/etc/fakenotify/config.toml"]
jellyfin:
image: jellyfin/jellyfin:latest
environment:
- LD_PRELOAD=/fakenotify/lib/libfakenotify_preload.so
- FAKENOTIFY_SOCKET=/fakenotify/run/fakenotify.sock
volumes:
- fakenotify-share:/fakenotify:ro
- /mnt/media:/media
depends_on:
- fakenotify
restart: unless-stopped
# LinuxServer.io containers: use the FakeNotify DockerMod. The mod
# auto-detects the sidecar share when the volume is mounted; no
# manual LD_PRELOAD env required.
sonarr:
image: lscr.io/linuxserver/sonarr:latest
environment:
- DOCKER_MODS=ghcr.io/zachhandley/fakenotify-mod:latest
volumes:
- fakenotify-share:/fakenotify:ro
- /mnt/media:/media
- /mnt/downloads:/downloads
depends_on:
- fakenotify
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr:latest
environment:
- DOCKER_MODS=ghcr.io/zachhandley/fakenotify-mod:latest
volumes:
- fakenotify-share:/fakenotify:ro
- /mnt/media:/media
- /mnt/downloads:/downloads
depends_on:
- fakenotify
restart: unless-stopped
volumes:
fakenotify-share:
# ----------------------------------------------------------------------
# Legacy: host install pattern (kept for non-docker workloads). Requires
# `curl -sSL https://raw.githubusercontent.com/zachhandley/FakeNotify/
# main/install-release.sh | sudo bash` on the host first.
# ----------------------------------------------------------------------
#
# jellyfin:
# image: jellyfin/jellyfin:latest
# environment:
# - LD_PRELOAD=/usr/local/lib/libfakenotify_preload.so
# volumes:
# - /run/fakenotify:/run/fakenotify:ro
# - /usr/local/lib/libfakenotify_preload.so:/usr/local/lib/libfakenotify_preload.so:ro
# - /mnt/media:/media