- Platform information:
- Hardware: RPI4
- OS: Raspbian buster
- openHAB version: 3.4.3
Is it possible to bind a specific IP to my Dockerimage?
My docker-comopse looks like this
> version: '2'
>
> services:
> openhab:
> image: "openhab/openhab:3.4.3"
> container_name: openhab
> restart: always
> network_mode: host
> volumes:
> - "/etc/localtime:/etc/localtime:ro"
> - "/etc/timezone:/etc/timezone:ro"
> - "./daten/openhab/addons:/openhab/addons"
> - "./daten/openhab/conf:/openhab/conf"
> - "./daten/openhab/userdata:/openhab/userdata"
> - "./daten/openhab/startup-scripts:/etc/cont-init.d"
> environment:
> CRYPTO_POLICY: "unlimited"
> OPENHAB_HTTP_PORT: "8080"
> OPENHAB_HTTPS_PORT: "8443"
> EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
just adding the ports like with other images does not work.
ports:
- 10.0.0.250:8080:8080
- 10.0.0.250:8443:8443
is there another way to get openhab just responding to the specific IP?
Oh, i just tried to add a variable what is working - but now myopenhab and alexa is no longer reaching openhab installation
environment:
CRYPTO_POLICY: "unlimited"
OPENHAB_HTTP_ADDRESS: "10.0.0.250"
openHAB connection error: Connection refused
thank you