IngmarStein / openwb-docker

Run OpenWB in a container.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMPORTANT: This project is unmaintained

Due to lack of interest in supporting a containerized environment by the OpenWB team, this project is no longer updated and no support is provided.

openwb-docker

Run OpenWB in a container.

openWB is a great solution for charging your EV using surplus solar energy and home automation. The product range starts from a standalone solution running on a Raspberry Pi to a complete wallbox with a display. But what if you just want to try the software and test the available integrations?

This project allows to run the same open source software which powers the openWB products in a container.

Get Started

Choose one of the methods below to create and run a container with openWB:

Using Docker:

docker run --network host -d -e WEB_PORT=8888 --cap-add=NET_ADMIN --name openwb --restart always -v "$(pwd)/openwb.conf:/var/www/html/openWB/openwb.conf" ingmarstein/openwb

Using Docker Compose: adjust configuration in docker-compose.yml and run

docker-compose up -d

Using Portainer:

  1. start creating a new container with the following settings:

2. navigate to the advanced settings and set up the bind mounts:

Bildschirmfoto 2021-05-09 um 21 00 32

3. select the `host` network:

4. set required environment variables:

5. choose a restart policy:

6. enable the `init` flag:

7. enable the `NET_ADMIN` capability

8. click "deploy the container"

Once the container is started, navigate to http://${HOST}:${WEB_PORT}/openWB to access the openWB web interface.

It is recommended to mount openwb.conf from the host so that configuration changes persist a container restart and to provide a logdata directory to persist the long-term log data.

About

Run OpenWB in a container.

License:GNU General Public License v3.0


Languages

Language:Dockerfile 58.1%Language:Shell 41.9%