-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
287 lines (261 loc) · 9.12 KB
/
docker-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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
version: "3"
# INTERNAL NETWORKS
networks:
nextcloud_network:
name: nextcloud_network
services:
# CERTIFICATE RENEWAL
certbot:
container_name: certbot
image: certbot/certbot:latest
restart: unless-stopped
volumes:
- /etc/letsencrypt:/etc/letsencrypt:rw
- ${DOCKER_CONFIG_DIR}/certbot/www:/var/www/certbot:rw
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
# Main Dashboard
# homer:
# image: b4bz/homer
# container_name: homer
# ports:
# - 1337:8080
# volumes:
# - ${DOCKER_CONFIG_DATA}/homer:/www/assets
# user: 1000:1000 # default
# environment:
# - INIT_ASSETS=1 # default
# DASHBOARD
flame:
container_name: flame
image: pawelmalak/flame
volumes:
- ${DOCKER_DATA_DIR}/flame:/app/data
- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration
ports:
- 5005:5005
environment:
- PASSWORD=${FLAME_PASSWORD}
restart: unless-stopped
# PASSWORD MANAGER
vaultwarden:
container_name: vaultwarden
image: vaultwarden/server:latest
restart: unless-stopped
volumes:
- ${MAIN_DRIVE_DIR}/vaultwarden:/data/
ports:
- 7777:80
# MEDIA
transmission:
container_name: transmission
image: lscr.io/linuxserver/transmission:latest
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- TRANSMISSION_WEB_HOME=/combustion-release/
- USER=${TRANSMISSION_USERNAME}
- PASS=${TRANSMISSION_PASSWORD}
volumes:
- ${DOCKER_CONFIG_DIR}/transmission:/config
- ${MAIN_DRIVE_DIR}/downloads:/downloads
- ${DOCKER_DATA_DIR}/transmission/watch:/watch
ports:
- 9091:9091
# Media server
jellyfin:
container_name: jellyfin
image: lscr.io/linuxserver/jellyfin:latest
restart: unless-stopped
group_add:
- "109" # cat /etc/group | grep render
- "44" # cat /etc/group | grep video
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- JELLYFIN_PublishedServerUrl=${JELLYFIN_DOMAIN_NAME}
- DOCKER_MODS=linuxserver/mods:jellyfin-amd
volumes:
- ${DOCKER_CONFIG_DIR}/jellyfin/library:/config
- ${MAIN_DRIVE_DIR}/media/series:/data/series
- ${MAIN_DRIVE_DIR}/media/movies:/data/movies
- /dev/shm/JellyfinTranscode:/transcode
devices:
- /dev/dri/:/dev/dri/
ports:
- 8096:8096
# Movies
radarr:
container_name: radarr
image: lscr.io/linuxserver/radarr:latest
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${DOCKER_CONFIG_DIR}/radarr:/config
- ${MAIN_DRIVE_DIR}/media/movies:/movies
- ${MAIN_DRIVE_DIR}/downloads:/downloads
ports:
- 7878:7878
# Shows
sonarr:
container_name: sonarr
image: lscr.io/linuxserver/sonarr:latest
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${DOCKER_CONFIG_DIR}/sonarr:/config
- ${MAIN_DRIVE_DIR}/media/series:/tv
- ${MAIN_DRIVE_DIR}/downloads:/downloads
ports:
- 8989:8989
# Indexer
jackett:
container_name: jackett
image: lscr.io/linuxserver/jackett:latest
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${DOCKER_CONFIG_DIR}/jackett:/config
- ${MAIN_DRIVE_DIR}/downloads/torrent-blackhole:/downloads
ports:
- 9117:9117
restart: unless-stopped
# Subtitles
bazarr:
container_name: bazarr
image: linuxserver/bazarr
restart: unless-stopped
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${DOCKER_CONFIG_DIR}/bazarr:/config
- ${MAIN_DRIVE_DIR}/media/movies:/movies
- ${MAIN_DRIVE_DIR}/media/series:/tv
ports:
- 6767:6767
# SELFHOSTED CLOUD
nextcloud:
image: nextcloud:latest
container_name: nextcloud
restart: unless-stopped
depends_on:
- nextcloud_db
environment:
- OVERWRITEPROTOCOL=https
- POSTGRES_HOST=nextcloud_db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=${POSTGRES_NEXTCLOUD_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_NEXTCLOUD_PASSWORD}
volumes:
- ${DOCKER_DATA_DIR}/nextcloud:/var/www/html
- ${MAIN_DRIVE_DIR}/nextcloud/data:/var/www/html/data
ports:
- 42069:80
networks:
- nextcloud_network
nextcloud_db:
image: postgres:latest
container_name: nextcloud_db
hostname: nextcloud_db
restart: unless-stopped
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=${POSTGRES_NEXTCLOUD_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_NEXTCLOUD_PASSWORD}
volumes:
- ${DOCKER_DATA_DIR}/nextcloud_db:/var/lib/postgresql/data
networks:
- nextcloud_network
# SELFHOSTED PHOTOS
photoprism: # https://docs.photoprism.app/getting-started/docker-compose/#command-line-interface
image: photoprism/photoprism:latest
restart: unless-stopped
container_name: photoprism
security_opt:
- seccomp:unconfined
- apparmor:unconfined
environment:
PHOTOPRISM_ADMIN_PASSWORD: ${PHOTOPRISM_PASSWORD} # YOUR INITIAL ADMIN PASSWORD (MINIMUM 8 CHARACTERS, USERNAME "admin")
PHOTOPRISM_SITE_URL: "https://photos.nyanspruk.cyou/" # public server URL incl http:// or https:// and /path, :port is optional
PHOTOPRISM_ORIGINALS_LIMIT: 5000 # file size limit for originals in MB (increase for high-res video)
PHOTOPRISM_HTTP_COMPRESSION: "gzip" # improves transfer speed and bandwidth utilization (none or gzip)
PHOTOPRISM_LOG_LEVEL: "info" # log level: trace, debug, info, warning, error, fatal, or panic
PHOTOPRISM_PUBLIC: "false" # no authentication required (disables password protection)
PHOTOPRISM_READONLY: "true" # do not modify originals directory (reduced functionality)
PHOTOPRISM_EXPERIMENTAL: "true" # enables experimental features
PHOTOPRISM_DISABLE_CHOWN: "false" # disables storage permission updates on startup
PHOTOPRISM_DISABLE_WEBDAV: "false" # disables built-in WebDAV server
PHOTOPRISM_DISABLE_SETTINGS: "false" # disables settings UI and API
PHOTOPRISM_DISABLE_TENSORFLOW: "false" # disables all features depending on TensorFlow
PHOTOPRISM_DISABLE_FACES: "false" # disables facial recognition
PHOTOPRISM_DISABLE_CLASSIFICATION: "false" # disables image classification
PHOTOPRISM_DISABLE_RAW: "false" # disables indexing and conversion of RAW files
PHOTOPRISM_RAW_PRESETS: "false" # enables applying user presets when converting RAW files (reduces performance)
PHOTOPRISM_JPEG_QUALITY: 90 # image quality, a higher value reduces compression (25-100)
PHOTOPRISM_DETECT_NSFW: "true" # flag photos as private that MAY be offensive (requires TensorFlow)
PHOTOPRISM_UPLOAD_NSFW: "true" # allows uploads that MAY be offensive
PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server
PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
PHOTOPRISM_SITE_DESCRIPTION: "" # meta site description
PHOTOPRISM_SITE_AUTHOR: "nyanSpruk" # meta site author
devices:
- "/dev/dri:/dev/dri"
working_dir: "/photoprism" # do not change or remove
volumes:
- ${MAIN_DRIVE_DIR}/nextcloud/data/nyanSpruk/files/Personal/Phone_Photos_Automatic_Upload/:/photoprism/originals # Original media files (DO NOT REMOVE)
- ${DOCKER_DATA_DIR}/photoprism/:/photoprism/storage # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
ports:
- 2080:2342
# Dynamic IP
ddclient:
container_name: ddclient
image: lscr.io/linuxserver/ddclient:latest
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=Etc/UTC # your timezone: $ timedatectl
volumes:
- ${DOCKER_CONFIG_DIR}/ddclient/:/config # ddclient configuration file
# Logs: https://stackoverflow.com/questions/41144589/how-to-redirect-docker-container-logs-to-a-single-file
# GAMES
minecraft:
container_name: mc_server_zarja
image: marctv/minecraft-papermc-server:1.19
ports:
- 25565:25565
- 25575:25575
tty: true
stdin_open: true
volumes:
- ${DOCKER_DATA_DIR}/minecraft:/data
restart: unless-stopped
environment:
OVERRIDE_SERVER_PROPERTIES: "true"
# Important administration
EULA: "true"
MAX_MEMORY: "2G"
SERVER_PORT: 25565
SPAWN_PROTECTION: 0
ENABLE_WHITELIST: "TRUE"
OPS: "${MINECRAFT_OPS}"
# WORLD
LEVEL: "${MINECRAFT_WORLD_NAME}"
PVP: "false"
# OTHER
MOTD: "Pina's Minecraft Server"
# RCON Stuff
ENABLE_RCON: "true"
RCON_PASSWORD: "${RCON_PASSWORD}"
RCON_PORT: ${RCON_PORT}