-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcompose.yml
228 lines (221 loc) · 6.48 KB
/
compose.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
name: "myproject"
services:
sabnzbd:
image: lscr.io/linuxserver/sabnzbd
hostname: sabnzbd
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
DOCKER_MODS: ghcr.io/gilbn/theme.park:sabnzbd
TP_THEME: ${THEMEPARK_THEME}
TP_DOMAIN: ${HOME_DOMAIN}\/themepark
TP_HOTIO: "false"
volumes:
- /var/volumes/sabnzbd:/config
- storage:/storage
labels:
- "traefik.enable=true"
- "traefik.http.routers.sabnzbd.rule=Host(`${HOME_DOMAIN}`) && PathPrefix(`/sabnzbd`)"
- "traefik.http.routers.sabnzbd.tls.certresolver=htpc"
- "traefik.http.routers.sabnzbd.middlewares=chain-authelia@file"
- "compose2nix.systemd.service.RuntimeMaxSec=10"
- "compose2nix.systemd.unit.Description=This is the sabnzbd container!"
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
compress: "true"
healthcheck:
test: "curl -f http://localhost/"
restart: unless-stopped
transmission:
image: docker.io/haugene/transmission-openvpn
container_name: torrent-client
privileged: true
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
dns:
- 8.8.8.8
- 8.8.4.4
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
ports:
- "9091:9091"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/volumes/transmission/config:/config
- /var/volumes/transmission/scripts:/scripts
- storage:/storage
networks:
something:
aliases:
- "my-torrent-client"
extra_hosts:
- "abc:93.184.216.34"
- "abc:::1"
depends_on:
- sabnzbd
shm_size: 64m
environment:
TZ: ${TIMEZONE}
PUID: ${PUID}
PGID: ${PGID}
# Do not try to chown the download directories.
GLOBAL_APPLY_PERMISSIONS: "false"
TRANSMISSION_HOME: /config/transmission-home
LOCAL_NETWORK: 192.168.0.0/16
# Disable DHT and PEX for private trackers.
TRANSMISSION_DHT_ENABLED: "false"
TRANSMISSION_PEX_ENABLED: "false"
# Directories
TRANSMISSION_DOWNLOAD_DIR: /storage/Downloads/transmission
TRANSMISSION_INCOMPLETE_DIR: /storage/Downloads/transmission/incomplete
TRANSMISSION_INCOMPLETE_DIR_ENABLED: "true"
# Script to automatically unrar downloads in Transmission.
# Make sure to set perms to 655.
TRANSMISSION_SCRIPT_TORRENT_DONE_ENABLED: "true"
TRANSMISSION_SCRIPT_TORRENT_DONE_FILENAME: /config/transmission-unpack.sh
labels:
- "traefik.enable=true"
- "traefik.http.services.transmission.loadbalancer.server.port=9091"
- "traefik.http.routers.transmission.rule=Host(`${HOME_DOMAIN}`) && PathPrefix(`/transmission`)"
- "traefik.http.routers.transmission.tls.certresolver=htpc"
- "traefik.http.routers.transmission.middlewares=chain-authelia@file"
- "autoheal=true"
- "compose2nix.settings.autoStart=false"
healthcheck:
disable: true
# Restart 3 times on failure. This can happen when the VPN sub expires.
restart: on-failure:3
jellyseerr:
image: docker.io/fallenbagel/jellyseerr:latest
container_name: jellyseerr
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
dns:
- 1.1.1.1
volumes:
- /var/volumes/jellyseerr:/app/config
- books:/books
labels:
- "traefik.enable=true"
- "traefik.http.routers.jellyseerr.rule=Host(`requests.${DOMAIN}`)"
- "traefik.http.routers.jellyseerr.tls.certresolver=htpc"
- "traefik.http.routers.jellyseerr.middlewares=chain-authelia@file"
network_mode: "service:sabnzbd"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
resources:
limits:
cpus: 1.5
memory: 1000M
reservations:
cpus: 1.0 # ignored
memory: 500M
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
compress: "true"
command: ls -la /
healthcheck:
# Double-$ is used to escape Compose env variable evaluation.
test: ["CMD-SHELL", "curl -f http://localhost/$${POTATO}"]
restart: unless-stopped
photoprism-mariadb:
image: docker.io/library/mariadb:10.9
container_name: photoprism-mariadb
environment:
MARIADB_AUTO_UPGRADE: "1"
MARIADB_INITDB_SKIP_TZINFO: "1"
MARIADB_DATABASE: "photoprism"
MARIADB_USER: "photoprism"
MARIADB_PASSWORD: "insecure"
MARIADB_ROOT_PASSWORD: "insecure"
network_mode: "host"
user: "${PUID}:${PGID}"
volumes:
- /var/volumes/photoprism-mariadb:/var/lib/mysql
- photos:/photos
deploy:
restart_policy:
condition: any
delay: 3m
max_attempts: 10
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
compress: "true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_interval: 5s
restart: unless-stopped
traefik:
container_name: traefik
image: docker.io/library/traefik
ports:
- "80:80"
- "443:443"
environment:
CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL}
CLOUDFLARE_API_KEY: ${CLOUDFLARE_API_KEY}
volumes:
- /var/run/podman/podman.sock:/var/run/docker.sock:ro
- /var/volumes/traefik:/etc/traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`${HOME_DOMAIN}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.traefik.entrypoints=https"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls.certresolver=htpc"
- "traefik.http.routers.traefik.middlewares=chain-authelia@file"
- "compose2nix.systemd.service.Restart='no'"
- "compose2nix.systemd.unit.AllowIsolate=true"
network_mode: "container:sabnzbd"
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "3"
compress: "true"
networks:
something:
labels:
- "test-label=okay"
volumes:
storage:
name: storage
driver_opts:
type: none
device: /mnt/media
o: bind
books:
driver_opts:
type: none
device: /mnt/media/Books
o: bind
photos:
name: photos
labels:
- "test-label=okay"
driver_opts:
type: none
device: /mnt/photos
o: bind