remove host mode and add -listen-address parameter
This commit is contained in:
parent
9b8ee4a931
commit
5705db4d60
3 changed files with 4 additions and 3 deletions
|
@ -1,2 +1,3 @@
|
||||||
USERNAME=*****
|
USERNAME=*****
|
||||||
HUE_URL=192.168.178.34
|
HUE_URL=192.168.178.34
|
||||||
|
LISTEN_ADDRESS=127.0.0.1:9773
|
||||||
|
|
|
@ -12,4 +12,4 @@ COPY --from=build /hue_exporter /hue_exporter
|
||||||
COPY hue_metrics.json ./
|
COPY hue_metrics.json ./
|
||||||
EXPOSE 9773
|
EXPOSE 9773
|
||||||
|
|
||||||
ENTRYPOINT [ "sh", "-c", "/hue_exporter -username ${USERNAME} -hue-url ${HUE_URL} -metrics-file hue_metrics.json" ]
|
ENTRYPOINT [ "sh", "-c", "/hue_exporter -username ${USERNAME} -hue-url ${HUE_URL} -metrics-file hue_metrics.json -listen-address ${LISTEN_ADDRESS}" ]
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: hue_exporter
|
container_name: hue_exporter
|
||||||
network_mode: "host"
|
#network_mode: "host"
|
||||||
ports:
|
ports:
|
||||||
- 9773:9773
|
- 9773:9773
|
||||||
env_file:
|
env_file:
|
||||||
|
|
Loading…
Reference in a new issue