Docker image for CCU-Historian.
Service | Stats |
---|---|
Docker | |
GitHub | |
CCU-Historian |
Topic | Description |
---|---|
Image | See Docker Hub. |
Source | See GitHub. |
docker pull xjokay/ccu-historian
Tag | Description | Size |
---|---|---|
latest | Latest master build | |
2.1.0 | Release 2.1.0 |
Port | Protocol | Description |
---|---|---|
80 | TCP | Web-GUI |
2098 | TCP | XmlRpcPort |
2099 | TCP | BinRpcPort |
Directory | Description |
---|---|
/database | Location of the database |
/opt/ccu-historian/config | Location of the config file |
These environment variables must be set for the first start:
ENV field | Values | Description |
---|---|---|
CONFIG_CCU_TYPE | CCU1, CCU2, CCU3 | Type of the CCU hardware |
CONFIG_CCU_IP | IP of the CCU | |
CONFIG_HOST_IP | IP of the Docker host | |
CONFIG_HOST_XMLRPCPORT | 2098 | Optional: XML port of the RPC-port |
CONFIG_HOST_BINRPCPORT | 2099 | Optional: Bin port of the RPC-port |
CONFIG_CCU_PLUGIN1_TYPE | CUXD, HMWLGW | Optional: Additional plugins |
CONFIG_CCU_PLUGIN2_TYPE | CUXD, HMWLGW | Optional: Additional plugins |
Additional config settings should be made by changing the config file ccu-historian.config within the docker container.
It is easier to export the config folder out of the docker container and edit the file there.
version: '3.7'
services:
app:
image: xjokay/ccu-historian:latest
volumes:
- ./database:/database
- ./config:/opt/ccu-historian/config
ports:
- 80:80
- 2098:2098
- 2099:2099
environment:
- TZ=Europe/Zurich
- CONFIG_CCU_TYPE=CCU2
- CONFIG_CCU_IP=192.168.1.10
- CONFIG_HOST_IP=192.168.1.100
networks:
- default
docker run -d \
-v $PWD/database:/database \
-v $PWD/config:/opt/ccu-historian/config \
-p 80:80 \
-p 2098:2098 \
-p 2099:2099 \
-e TZ=Europe/Zurich \
-e CONFIG_CCU_TYPE=CCU2 \
-e CONFIG_CCU_IP=192.168.1.10 \
-e CONFIG_HOST_IP=192.168.1.100 \
xjokay/ccu-historian:latest