-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
189 lines (179 loc) · 5.79 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
version: "3.7"
services:
node-red-main:
image: ghcr.io/klima-dashboard/data-tools:node-red
environment:
- TZ=Europe/Amsterdam
- ADMIN_PASSWORD=$$2b$$08$$v8d1BR/rftGMP6969SHnHO5wWNGirMJxRuKQ28wxPs56nc7A79r0G
- REDIRECT_URI=https://node-red.bad-belzig.klima-daten.de/auth/strategy/callback
networks:
public:
data-tools:
volumes:
- node-red-data:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
traefik.http.routers.node-red.rule: Host(`node-red.bad-belzig.klima-daten.de`)
traefik.http.routers.node-red.tls: "true"
traefik.http.routers.node-red.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.node-red.loadbalancer.server.port: 1880
traefik.enable: "true"
secrets:
- node-red-credential-secret
- node-red-keycloak-client-secret
node-red-1:
image: ghcr.io/klima-dashboard/data-tools:node-red
environment:
- TZ=Europe/Amsterdam
- ADMIN_PASSWORD=$$2b$$08$$v8d1BR/rftGMP6969SHnHO5wWNGirMJxRuKQ28wxPs56nc7A79r0G
- REDIRECT_URI=https://node-red-1.bad-belzig.klima-daten.de/auth/strategy/callback
networks:
public:
data-tools:
volumes:
- node-red-1-data:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
traefik.http.routers.node-red-1.rule: Host(`node-red-1.bad-belzig.klima-daten.de`)
traefik.http.routers.node-red-1.tls: "true"
traefik.http.routers.node-red-1.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.node-red-1.loadbalancer.server.port: 1880
traefik.enable: "true"
secrets:
- node-red-credential-secret
- node-red-keycloak-client-secret
node-red-2:
image: ghcr.io/klima-dashboard/data-tools:node-red
environment:
- TZ=Europe/Amsterdam
- ADMIN_PASSWORD=$$2b$$08$$v8d1BR/rftGMP6969SHnHO5wWNGirMJxRuKQ28wxPs56nc7A79r0G
- REDIRECT_URI=https://node-red-2.bad-belzig.klima-daten.de/auth/strategy/callback
networks:
public:
data-tools:
volumes:
- node-red-2-data:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
traefik.http.routers.node-red-2.rule: Host(`node-red-2.bad-belzig.klima-daten.de`)
traefik.http.routers.node-red-2.tls: "true"
traefik.http.routers.node-red-2.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.node-red-2.loadbalancer.server.port: 1880
traefik.enable: "true"
secrets:
- node-red-credential-secret
- node-red-keycloak-client-secret
node-red-3:
image: ghcr.io/klima-dashboard/data-tools:node-red
environment:
- TZ=Europe/Amsterdam
- ADMIN_PASSWORD=$$2b$$08$$v8d1BR/rftGMP6969SHnHO5wWNGirMJxRuKQ28wxPs56nc7A79r0G
- REDIRECT_URI=https://node-red-3.bad-belzig.klima-daten.de/auth/strategy/callback
networks:
public:
data-tools:
volumes:
- node-red-3-data:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
traefik.http.routers.node-red-3.rule: Host(`node-red-3.bad-belzig.klima-daten.de`)
traefik.http.routers.node-red-3.tls: "true"
traefik.http.routers.node-red-3.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.node-red-3.loadbalancer.server.port: 1880
traefik.enable: "true"
secrets:
- node-red-credential-secret
- node-red-keycloak-client-secret
influxdb:
image: influxdb:2.5
command: ["influxd", "--session-length=1440"]
deploy:
labels:
traefik.http.routers.influxdb.rule: Host(`influxdb.bad-belzig.klima-daten.de`)
traefik.http.routers.influxdb.tls: "true"
traefik.http.routers.influxdb.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.influxdb.loadbalancer.server.port: 8086
traefik.enable: "true"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_ORG=smart-village
- DOCKER_INFLUXDB_INIT_BUCKET=node-red
- DOCKER_INFLUXDB_INIT_USERNAME=influxdb-user
- DOCKER_INFLUXDB_INIT_RETENTION=4w
- DOCKER_INFLUXDB_INIT_PASSWORD_FILE=/run/secrets/influxdb-password
networks:
public:
data-tools:
volumes:
- influxdb-data:/var/lib/influxdb2
secrets:
- influxdb-password
- influxdb-admin-token
grafana:
image: ghcr.io/klima-dashboard/data-tools:grafana
deploy:
labels:
traefik.http.routers.grafana.rule: Host(`grafana.bad-belzig.klima-daten.de`)
traefik.http.routers.grafana.tls: "true"
traefik.http.routers.grafana.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.grafana.loadbalancer.server.port: 3000
traefik.enable: "true"
environment:
- GF_SECURITY_ADMIN_PASSWORD__FILE=/run/secrets/grafana-admin-password
networks:
public:
data-tools:
volumes:
- grafana-data:/var/lib/grafana
secrets:
- grafana-admin-password
- grafana-keycloak-client-secret
volumes:
node-red-data:
external: true
node-red-1-data:
external: true
node-red-2-data:
external: true
node-red-3-data:
external: true
influxdb-data:
external: true
grafana-data:
external: true
secrets:
influxdb-password:
external: true
influxdb-admin-token:
external: true
grafana-admin-password:
external: true
node-red-credential-secret:
external: true
node-red-keycloak-client-secret:
external: true
grafana-keycloak-client-secret:
external: true
networks:
public:
external: true
data-tools:
external: true