-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.system.yml
189 lines (177 loc) · 4.5 KB
/
docker-compose.system.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
version: '3.5'
x-traefik-default-labels: &traefik-default-labels
traefik.backend: BACKEND
traefik.frontend.rule: "Host:SERVICE.${SERVER_DOMAIN}"
traefik.port: PORT
traefik.enable: true
traefik.docker.network: traefik
traefik.frontend.headers.SSLRedirect: true
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.browserXSSFilter: true
traefik.frontend.headers.contentTypeNosniff: true
traefik.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.SSLHost: ${ROOT_DOMAIN}
traefik.frontend.headers.STSIncludeSubdomains: true
traefik.frontend.headers.STSPreload: true
traefik.frontend.headers.frameDeny: false
x-traefik-auth-labels: &traefik-auth-labels
<<: *traefik-default-labels
traefik.frontend.auth.basic: ${HTTP_AUTH}
services:
ddclient:
container_name: ddclient
image: linuxserver/ddclient
restart: unless-stopped
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
volumes:
- ${CONFIG_PATH}/ddclient:/config
watchtower:
container_name: watchtower
image: v2tec/watchtower
restart: unless-stopped
volumes:
- ${DOCKER_SOCKET}:/var/run/docker.sock
command: --schedule "0 0 4 * * *" --cleanup
muximux:
container_name: muximux
image: linuxserver/muximux
restart: unless-stopped
ports:
- "8888:80"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
volumes:
- ${CONFIG_PATH}/muximux:/config
networks:
- traefik
labels:
<<: *traefik-auth-labels
traefik.backend: muximux
traefik.frontend.rule: "Host:muximux.${SERVER_DOMAIN}"
traefik.port: 80
influxdb:
container_name: influxdb
image: influxdb
restart: unless-stopped
ports:
- "8086:8086"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
volumes:
- ${CONFIG_PATH}/influxdb:/var/lib/influxdb
networks:
- system
glances:
container_name: glances
image: nicolargo/glances
restart: unless-stopped
depends_on:
- influxdb
pid: host
environment:
GLANCES_OPT: --quiet --export influxdb
volumes:
- ${DOCKER_SOCKET}:/var/run/docker.sock:ro
- ${CONFIG_PATH}/glances:/glances/conf
networks:
- system
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
depends_on:
- influxdb
ports:
- "3000:3000"
user: ${PUID}
volumes:
- ${CONFIG_PATH}/grafana:/var/lib/grafana
networks:
- system
- traefik
labels:
<<: *traefik-default-labels
traefik.backend: grafana
traefik.frontend.rule: "Host:grafana.${SERVER_DOMAIN}"
traefik.port: 3000
portainer:
container_name: portainer
image: portainer/portainer
restart: unless-stopped
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TIMEZONE}
volumes:
- ${DOCKER_SOCKET}:/var/run/docker.sock
- ${CONFIG_PATH}/portainer:/data
networks:
- traefik
labels:
<<: *traefik-default-labels
traefik.backend: portainer
traefik.frontend.rule: "Host:portainer.${SERVER_DOMAIN}"
traefik.port: 9000
traefik:
container_name: traefik
image: traefik
restart: unless-stopped
command: --api --docker
ports:
- "80:80"
- "443:443"
- "8080:8080"
environment:
- CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
- CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
volumes:
- ${DOCKER_SOCKET}:/var/run/docker.sock:ro
- ${CONFIG_PATH}/traefik:/etc/traefik
networks:
- traefik
labels:
<<: *traefik-auth-labels
traefik.backend: traefik
traefik.frontend.rule: "Host:traefik.${SERVER_DOMAIN}"
traefik.port: 8080
pihole:
container_name: pihole
image: pihole/pihole
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8088:80"
environment:
TZ: ${TIMEZONE}
ServerIP: ${HOST_IP}
#ServerIPv6: ${HOST_IP}
VIRTUAL_HOST: ${HOST_IP}:8088
volumes:
- ${CONFIG_PATH}/dnsmasq.d:/etc/dnsmasq.d
- ${CONFIG_PATH}/pihole:/etc/pihole
networks:
- traefik
cap_add:
- NET_ADMIN
labels:
<<: *traefik-auth-labels
traefik.backend: pihole
traefik.frontend.rule: "Host:pihole.${SERVER_DOMAIN}"
traefik.port: 80
networks:
traefik:
driver: bridge
system:
driver: bridge