-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·189 lines (179 loc) · 6.1 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.8"
services:
api:
build: dist/FunctionalLiving.Api/linux/
container_name: functional-living-api
hostname: functional-living-api
restart: on-failure
environment:
Features__EnableSignalR: "true"
Features__EnableTracing: "false"
Features__SendToInflux: "true"
Features__SendToKnxSender: "true"
Features__SendToLog: "true"
Features__SendToSignalR: "true"
BaseUrl: http://localhost:9000
Cors__AllowedHosts__0: http://localhost:9000
Cors__AllowedHosts__1: http://127.0.0.1:9000
Cors__AllowedHosts__2: http://blue:9000
Cors__AllowedHosts__3: http://skully:9000
Cors__AllowedHosts__4: http://tuxie:9000
KnxSender__Endpoint: http://functional-living-knx-sender:9001
InfluxDb__Endpoint: http://functional-living-influx:8086
InfluxDb__Token: E0s8JaM8Mi180OyQyF6LyH_MQUdiv2ivS9JzbK4hrLlvfPzAcCu1warlMPaOQY8vq-LDVAVMJkm-tkozJ0M1nA==
InfluxDb__Bucket: functional-living
InfluxDb__Organisation: cumps
InfluxDb__LogLevel: None
Tracing__Host: functional-living-jaeger
Tracing__Port: 6831
Tracing__ServiceName: FunctionalLiving.Api
Serilog__WriteTo__1__Name: Seq
Serilog__WriteTo__1__Args__ServerUrl: http://functional-living-seq
ports:
- 9000:9000
depends_on:
- seq
- jaeger
- influx
- knx-sender
links:
- seq
- jaeger
- influx
- knx-sender
extra_hosts:
- "functional-living-knx-sender:10.0.1.9"
knx-listener:
build: dist/FunctionalLiving.Knx.Listener/linux/
container_name: functional-living-knx-listener
hostname: functional-living-knx-listener
restart: on-failure
network_mode: host
environment:
Features__EnableTracing: "false"
Features__ConnectToKnx: "true"
Features__DebugKnxCemi: "false"
Features__SendToApi: "true"
Features__SendToLog: "true"
Features__UseKnxConnectionRouting: "false"
Features__UseKnxConnectionTunneling: "true"
Knx__RouterIp: 10.0.4.7
Knx__RouterPort: 3671
Knx__LocalPort: 3672
Api__Endpoint: http://functional-living-api:9000
Tracing__Host: functional-living-jaeger
Tracing__Port: 9021
Tracing__ServiceName: FunctionalLiving.Knx.Listener
Serilog__MinimumLevel__Override__FunctionalLiving.Knx.Listener.Infrastructure.Modules.TogglesModule: Debug
Serilog__MinimumLevel__Override__FunctionalLiving.Knx.Listener.KnxListener: Debug
Serilog__WriteTo__1__Name: Seq
Serilog__WriteTo__1__Args__ServerUrl: http://functional-living-seq:9015
depends_on:
- seq
- jaeger
- api
extra_hosts:
- "functional-living-seq:127.0.0.1"
- "functional-living-jaeger:127.0.0.1"
- "functional-living-api:127.0.0.1"
knx-sender:
build: dist/FunctionalLiving.Knx.Sender/linux/
container_name: functional-living-knx-sender
hostname: functional-living-knx-sender
restart: on-failure
network_mode: host
environment:
Features__EnableTracing: "false"
Features__ConnectToKnx: "true"
Features__DebugKnxCemi: "false"
Features__UseKnxConnectionRouting: "false"
Features__UseKnxConnectionTunneling: "true"
Knx__RouterIp: 10.0.4.7
Knx__RouterPort: 3671
Knx__LocalPort: 3671
Tracing__Host: functional-living-jaeger
Tracing__Port: 9021
Tracing__ServiceName: FunctionalLiving.Knx.Sender
Serilog__MinimumLevel__Override__FunctionalLiving.Knx.Listener.Infrastructure.Modules.TogglesModule: Debug
Serilog__MinimumLevel__Override__FunctionalLiving.Knx.Listener.KnxSender: Debug
Serilog__WriteTo__1__Name: Seq
Serilog__WriteTo__1__Args__ServerUrl: http://functional-living-seq:9015
ports:
- 9001:9001
depends_on:
- seq
- jaeger
extra_hosts:
- "functional-living-seq:127.0.0.1"
- "functional-living-jaeger:127.0.0.1"
homebridge:
image: oznu/homebridge:latest
container_name: functional-living-homebridge
hostname: functional-living-homebridge
restart: on-failure
network_mode: host
environment:
- TZ=Europe/Brussels
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=9010
- HOMEBRIDGE_INSECURE=1
volumes:
- homebridge:/homebridge
depends_on:
- api
seq:
image: datalust/seq:2020.5
container_name: functional-living-seq
hostname: functional-living-seq
restart: on-failure
environment:
ACCEPT_EULA: Y
ports:
- 9015:80
jaeger:
image: jaegertracing/all-in-one:1.21.0
container_name: functional-living-jaeger
hostname: functional-living-jaeger
restart: on-failure
environment:
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: "false"
BADGER_DIRECTORY_VALUE: /badger/data
BADGER_DIRECTORY_KEY: /badger/key
ports:
- 9020:16686
- 9021:6831/udp
volumes:
- jaeger:/badger
influx:
image: quay.io/influxdb/influxdb:v2.0.3
container_name: functional-living-influx
hostname: functional-living-influx
restart: on-failure
ports:
- 9025:8086
volumes:
- influxdb:/var/lib/influxdb2
command: influxd run --reporting-disabled --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt
volumes:
homebridge:
name: functional-living-homebridge
influxdb:
name: functional-living-influx
jaeger:
name: functional-living-jaeger
# docker exec -it functional-living-influx /bin/bash
# influx setup
# * Enter a primary username.
# * Enter a password for your user.
# * Confirm your password by entering it again.
# * Enter a name for your primary organization.
# * Enter a name for your primary bucket.
# * Enter a retention period (in hours) for your primary bucket. Enter nothing for an infinite retention period.
# * Confirm the details for your primary user, organization, and bucket.
# * Go to http://localhost:9025/ to get your token
# docker exec -it functional-living-homebridge /bin/sh
# npm install --save
# docker logs -f functional-living-homebridge
# docker restart functional-living-homebridge
# or http://localhost:9010 with admin/admin