From f42a3dcf95156b173c5cc655b9fd2b4e9f3b27b9 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Sun, 26 Jul 2020 19:15:46 +0200 Subject: [PATCH] Updated README with docker details - Added SMA specific docker setup, as it needs the `network_mode: host` to be able to receive multicast UDP data - Removed double mention of port 7090 --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index be89d8b5e..dde6c25bc 100644 --- a/README.md +++ b/README.md @@ -79,10 +79,16 @@ EVCC can also be run using Docker. Here's and example with given config file and docker run -v $(pwd)/evcc.dist.yaml:/etc/evcc.yaml -p 7070:7070 andig/evcc -h ``` -If using Docker with a meter or charger that requires UDP like KEBA or SMA Energy Meter, make sure that the Docker container can receive UDP messages on the relevant ports (`:7090` for KEBA and `:9522` for SMA): +If using Docker with a meter or charger that requires UDP like KEBA, make sure that the Docker container can receive UDP messages on the relevant ports (`:7090` for KEBA): ```sh -docker run -p 7070:7070 -p 7090:7090/udp -p 7090:7090/udp -p 9522:9522/udp andig/evcc ... +docker run -p 7070:7070 -p 7090:7090/udp andig/evcc ... +``` + +When using Docker with a device that requires multicast UDP like SMA, make sure that the Docker container uses the `network_mode: host` configuration: + +```sh +docker run --network host andig/evcc ... ``` To build EVCC from source, [Go](2) 1.13 is required: