This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
264 lines (252 loc) · 6.32 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
version: "3.7"
services:
mass:
image: iamrgroot/laravel:${DOCKER_TAG}
container_name: mass
user: "${UID}:${GID}"
environment:
TZ: ${TZ}
CONTAINER_ROLE: app
COMPOSER_HOME: /var/www/.composer
COMPOSER_CACHE_DIR: /var/www/.composer/cache
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
mass:
ipv4_address: 172.19.0.2
mass-queue:
image: iamrgroot/laravel:${DOCKER_TAG}
container_name: mass-queue
user: "${UID}:${GID}"
depends_on:
- mass
environment:
TZ: ${TZ}
CONTAINER_ROLE: queue
restart: unless-stopped
volumes:
- ./:/var/www
networks:
mass:
ipv4_address: 172.19.0.12
mass-scheduler:
image: iamrgroot/laravel:${DOCKER_TAG}
container_name: mass-scheduler
user: "${UID}:${GID}"
depends_on:
- mass
environment:
TZ: ${TZ}
CONTAINER_ROLE: scheduler
restart: unless-stopped
volumes:
- ./:/var/www
networks:
mass:
ipv4_address: 172.19.0.13
mass-db:
image: mysql:latest
container_name: mass-db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
TZ: ${TZ}
volumes:
- ./docker-compose/mysql:/docker-entrypoint-initdb.d
networks:
mass:
ipv4_address: 172.19.0.3
mass-nginx:
image: nginx:alpine
container_name: mass-nginx
restart: unless-stopped
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
ports:
- 8000:80
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d/
networks:
mass:
ipv4_address: 172.19.0.4
labels:
- traefik.enable=true
- traefik.http.routers.http.rule=Host(`${APP_HOST}`)
- traefik.http.routers.http.entrypoints=http
- traefik.http.routers.http.middlewares=redirect
- traefik.http.middlewares.redirect.redirectscheme.scheme=https
- traefik.http.routers.https.rule=Host(`${APP_HOST}`)
- traefik.http.routers.https.tls=true
- traefik.http.routers.https.entrypoints=https
- traefik.http.routers.https.tls.certresolver=basic
transmission:
image: haugene/transmission-openvpn
container_name: transmission
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
networks:
mass:
ipv4_address: 172.19.0.5
dns:
- 1.1.1.1
- 1.0.0.1
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
- OPENVPN_PROVIDER=${OPENVPN_PROVIDER}
- OPENVPN_USERNAME=${OPENVPN_USER}
- OPENVPN_PASSWORD=${OPENVPN_PASSWORD}
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=false
- TRANSMISSION_UMASK=2
- TRANSMISSION_RATIO_LIMIT=0
- TRANSMISSION_RATIO_LIMIT_ENABLED=true
- TRANSMISSION_BLOCKLIST_URL=""
- TRANSMISSION_BLOCKLIST_ENABLED=false
- TRANSMISSION_DOWNLOAD_DIR="/downloads"
- TRANSMISSION_INCOMPLETE_DIR="/downloads/incomplete"
- TRANSMISSION_WATCH_DIR="/downloads/watch"
- TRANSMISSION_HOME="/config"
- LOCAL_NETWORK=${LOCAL_NETWORK}
volumes:
- ./docker-compose/transmission/config/:/config
- /mnt/data/downloads/:/downloads
restart: unless-stopped
ports:
- 9091:9091
sonarr:
image: linuxserver/sonarr:latest
container_name: sonarr
networks:
mass:
ipv4_address: 172.19.0.6
volumes:
- /dev/rtc:/dev/rtc:ro
- ./docker-compose/sonarr/config:/config
- /mnt/data/downloads/:/downloads
- /mnt/data/tvseries/:/tv
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
ports:
- 8989:8989
restart: unless-stopped
depends_on:
- transmission
radarr:
image: linuxserver/radarr:latest
container_name: radarr
networks:
mass:
ipv4_address: 172.19.0.7
volumes:
- /dev/rtc:/dev/rtc:ro
- ./docker-compose/radarr/config:/config
- /mnt/data/downloads/:/downloads
- /mnt/data/movies/:/movies
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
ports:
- 7878:7878
restart: unless-stopped
depends_on:
- transmission
bazarr:
image: linuxserver/bazarr
container_name: bazarr
networks:
mass:
ipv4_address: 172.19.0.8
volumes:
- ./docker-compose/sonarr/config:/config
- /mnt/data/movies/:/movies
- /mnt/data/tvseries/:/tv
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
ports:
- 6767:6767
restart: unless-stopped
jackett:
image: linuxserver/jackett:latest
container_name: jackett
networks:
mass:
ipv4_address: 172.19.0.9
ports:
- 9117:9117
volumes:
- ./docker-compose/jackett/config/:/config
- /mnt/data/downloads/:/downloads
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
restart: unless-stopped
traefik:
container_name: traefik
image: traefik:latest
networks:
mass:
ipv4_address: 172.19.0.10
ports:
- 80:80
- 443:443
# The Web UI (enabled by --api.insecure=true)
# - 8081:8080
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
- TRAEFIK_CERTIFICATESRESOLVERS_BASIC_ACME_EMAIL=${TRAEFIK_CERTIFICATESRESOLVERS_BASIC_ACME_EMAIL}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-compose/traefik/traefik.toml:/traefik.toml
- ./docker-compose/traefik/traefik:/acme
restart: unless-stopped
plex:
image: linuxserver/plex:latest
container_name: plex
networks:
mass:
ipv4_address: 172.19.0.11
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TZ}
- PLEX_CLAIM=${PLEX_CLAIM}
- VERSION=docker
ports:
- 32400:32400
volumes:
- /mnt/data/movies:/data/movies
- /mnt/data/tvseries:/data/tvshows
- ./docker-compose/plex/config/:/config
- /tmp:/tmp
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
networks:
mass:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/24