-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
224 lines (214 loc) · 6.36 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
version: '2.0'
services:
homer:
container_name: homer
image: b4bz/homer:latest
restart: always
volumes:
- /volume1/docker/homer:/www/assets
ports:
- "1280:8080"
environment:
- PID=1034
- GID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
flame:
container_name: flame
image: pawelmalak/flame:latest
restart: always
volumes:
- /volume1/docker/flame/data:/app/data
- /volume1/docker/flame/passwd:/app/secrets/passwd:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "15005:5005"
environment:
PID: "1034"
GID: "100"
TZ: "Asia/Hong_Kong"
PASSWORD_FILE: /app/secrets/passwd
mem_swappiness: -1 # temp workaround for synology+portainer
unifi-controller:
container_name: unifi-controller
image: linuxserver/unifi-controller:amd64-latest
restart: always
volumes:
- /volume1/docker/unifi-controller:/config
ports:
- "8080:8080"
- "8443:8443"
- "3478:3478/udp"
- "10001:10001/udp"
environment:
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
influxdb-grafana:
container_name: influxdb-grafana
image: philhawthorne/docker-influxdb-grafana:latest
restart: always
volumes:
- /volume1/docker/var/lib/grafana:/var/lib/grafana:rw
- /volume1/docker/var/lib/influxdb:/var/lib/influxdb:rw
ports:
- "3003:3003" # grafana
- "3004:8083" # chronograf
- "8086:8086" # influxdb
- "3005:8088"
- "22022:22" # ssh
environment:
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
transmission-ovpn:
container_name: transmission-ovpn
image: haugene/transmission-openvpn:latest
restart: always
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
volumes:
- /volume1/docker/transmission/config/tun.sh:/etc/rc.d/S01tun.sh:ro
- /volume2/media/transmission/downloads:/data
- /volume1/docker/transmission/config/resolv.conf:/etc/resolv.conf:ro
- /volume1/docker/transmission/openvpn/default.ovpn:/etc/openvpn/custom/default.ovpn:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8889:9091"
environment:
- LOCAL_NETWORK=192.168.1.0/16
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- OPENVPN_PROVIDER=CUSTOM
- OPENVPN_USERNAME=change_me
- OPENVPN_PASSWORD=change_me
- TRANSMISSION_DOWNLOAD_QUEUE_SIZE=30
- TRANSMISSION_IDLE_SEEDING_LIMIT=10080
- TRANSMISSION_IDLE_SEEDING_LIMIT_ENABLED=true
- TRANSMISSION_PEER_LIMIT_GLOBAL=500
- TRANSMISSION_PEER_LIMIT_PER_TORRENT=50
- TRANSMISSION_PEER_PORT=51413
- TRANSMISSION_RATIO_LIMIT=3
- TRANSMISSION_RATIO_LIMIT_ENABLED=true
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=false
- TRANSMISSION_RPC_ENABLED=true
- TRANSMISSION_UMASK=2
- PUID=1034
- PGID=100
labels:
- flame.type=application # "app" works too
- flame.name=transmission-ovpn
- flame.url=https://transmission-vpn.app.apandey.com
- flame.icon=transmission
mem_swappiness: -1 # temp workaround for synology+portainer
prowlarr:
container_name: prowlarr
image: lscr.io/linuxserver/prowlarr:develop
restart: always
volumes:
- /volume1/docker/prowlarr/config:/config
ports:
- "9696:9696"
environment:
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
sonarr:
container_name: sonarr
image: linuxserver/sonarr:latest
restart: always
volumes:
- /volume1/docker/sonarr/config:/config
- /volume2/media:/media
ports:
- "8989:8989"
environment:
- AUTO_UPDATE=true
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
radarr:
container_name: radarr
image: linuxserver/radarr:latest
restart: always
volumes:
- /volume1/docker/radarr/config:/config
- /volume2/media:/media
ports:
- "7878:7878"
environment:
- AUTO_UPDATE=true
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
telegraf:
container_name: telegraf
image: telegraf:latest
restart: always
volumes:
- /volume1/docker/telegraf/mibs:/usr/share/snmp/mibs:ro
- /volume1/docker/telegraf/config:/etc/telegraf:ro
- /volume1/docker/telegraf/logs:/var/logs/telegraf
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PUID=1034
- PGID=100
- TZ=Asia/Hong_Kong
mem_swappiness: -1 # temp workaround for synology+portainer
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: always
hostname: pihole
domainname: fence.apandey.com
cap_add:
- NET_ADMIN # This is required for version 4.1 onwards
- NET_BIND_SERVICE
- SYS_NICE
- CHOWN
cap_drop:
- NET_RAW # only needed for DHCP, lets be paranoid
networks:
pihole_network: # use macvlan network binding to separate IP
ipv4_address: 192.168.1.18
dns:
- 127.0.0.1
- 192.168.1.1
ports:
- "443:443/tcp"
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment: # Optional environment configuration
ServerIP: 192.168.1.18 # Change is this matches your NAS IP
WEBPASSWORD: change_me
TZ: Asia/Hong_Kong
PIHOLE_DNS_: "208.67.222.222;208.67.220.220"
DNSSEC: "true"
DHCP_ACTIVE: "false"
VIRTUAL_HOST: pihole.app.apandey.com
PIHOLE_UID: 1034
PIHOLE_GID: 100
WEB_UID: 1034
WEB_GID: 100
DNSMASQ_USER: root
volumes:
- /volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d
- /volume1/docker/pihole/pihole:/etc/pihole
mem_swappiness: -1 # temp workaround for synology+portainer
networks:
pihole_network: # Name of network
driver: macvlan # Use the macvlan network driver
driver_opts:
parent: bond0 # interface to route network through
ipam:
config:
- subnet: 192.168.1.1/24 # Specify subnet
gateway: 192.168.1.1 # Gateway address
ip_range: 192.168.1.16/30 # allowed allocations