-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsynology.docker-compose.yml
159 lines (157 loc) · 4.21 KB
/
synology.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
# Docker Compose Nasbox Version
version: "2"
services:
traefik:
image: traefik:v1.7
# if you are having grief setting up ACME, remove the acme bit and read the traefik.toml file
command: --web --docker --docker.watch --docker.domain=${DOMAIN} \
--docker.exposedbydefault=false --acme.domains=${DOMAIN}
container_name: traefik
hostname: traefik
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
networks:
- web
ports:
- "80:80"
- "443:443"
- "9081:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- "${CONFIG_DIR}/traefik/acme.json:/acme.json"
- "${CONFIG_DIR}/traefik/traefik.toml:/etc/traefik/traefik.toml"
labels:
traefik.enable: "true"
traefik.frontend.rule: "Host:traefik.${DOMAIN}"
traefik.port: "8080"
traefik.frontend.auth.basic: "${HTPASSWD}"
com.centurylinklabs.watchtower.enable: "true"
restart: unless-stopped
data:
image: "tianon/true"
volumes:
- "${CONFIG_DIR}:/config"
- "/etc/localtime:/etc/localtime:ro"
- "${MEDIA_DIR}:/data"
- "${TEMP_DIR}:/temp"
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PGID
- PUID
- TZ
command: --schedule "0 0 6 * * *" --label-enable --cleanup
restart: unless-stopped
ddclient:
image: linuxserver/ddclient
container_name: ddclient
volumes:
- /volume1/docker/config/ddclient:/config
labels:
com.centurylinklabs.watchtower.enable: "true"
environment:
- PGID
- PUID
- TZ
restart: unless-stopped
### SABNZBD CONFIG
sabnzbd:
image: "linuxserver/sabnzbd:latest"
volumes_from:
- "data"
volumes:
- "${CONFIG_DIR}/sabnzbd:/config"
- "${TEMP_DIR}/temp/downloads/sabnzbd:/downloads"
- "${TEMP_DIR}/incomplete/sabnzbd:/incomplete-downloads"
environment:
- "PUID=${PUID}"
- "PGID=${PGID}"
- "TZ=${TZ}"
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
networks:
- web
ports:
- "18000:8080"
labels:
traefik.enable: "true"
traefik.port: "8080"
traefik.frontend.rule: "Host:sabnzbd.${DOMAIN}"
traefik.frontend.auth.basic: "${HTPASSWD}"
traefik.backend: "sabnzbd"
com.centurylinklabs.watchtower.enable: "true"
restart: unless-stopped
### SONARR
sonarr:
image: "linuxserver/sonarr:latest"
volumes_from:
- "data"
volumes:
- "${CONFIG_DIR}/sonarr:/config"
- "${MEDIA_DIR}:/media"
ports:
- "8082:8989"
networks:
- web
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
environment:
- "PUID=${PUID}"
- "PGID=${PGID}"
- "TZ=${TZ}"
links:
- "sabnzbd"
restart: unless-stopped
labels:
traefik.enable: "true"
traefik.port: "8989"
traefik.frontend.rule: "Host:sonarr.${DOMAIN}"
traefik.frontend.auth.basic: "${HTPASSWD}"
com.centurylinklabs.watchtower.enable: "true"
plex:
image: "linuxserver/plex:latest"
volumes_from:
- "data"
volumes:
- "${CONFIG_DIR}/plex:/config"
- "/tmp/:/transcode"
# This is here for legacy reasons, I think you can honestly remove it
- "${TEMP_DIR}/plex/sync:/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+"
ports:
- "32400:32400"
environment:
- "VERSION=${PLEXVERSION}"
- "PGID=${PGID}"
- "PUID=${PUID}"
- "TZ=${TZ}"
restart: unless-stopped
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
devices:
- /dev/dri:/dev/dri
privileged: true
networks:
- web
labels:
traefik.enable: "false"
traefik.port: "32400"
traefik.frontend.rule: "Host:plex.${DOMAIN}"
com.centurylinklabs.watchtower.enable: "true"
networks:
web:
external: true