Skip to content

Commit 65fe9d9

Browse files
authored
Merge pull request #368 from Paraphraser/20210614-openhab-master
openHAB - consistency fixes - master branch - 1 of 3
2 parents 75a9fb7 + 2fbb240 commit 65fe9d9

File tree

2 files changed

+52
-14
lines changed

2 files changed

+52
-14
lines changed

.templates/openhab/service.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
openhab:
2-
image: "openhab/openhab:latest"
32
container_name: openhab
3+
image: "openhab/openhab:latest"
44
restart: unless-stopped
55
network_mode: host
6-
#ports:
7-
#- "4050:4050"
8-
#- "4051:4051"
96
volumes:
10-
- "/etc/localtime:/etc/localtime:ro"
11-
- "/etc/timezone:/etc/timezone:ro"
12-
- "./volumes/openhab/addons:/openhab/addons"
13-
- "./volumes/openhab/conf:/openhab/conf"
14-
- "./volumes/openhab/userdata:/openhab/userdata"
7+
- "/etc/localtime:/etc/localtime:ro"
8+
- "/etc/timezone:/etc/timezone:ro"
9+
- "./volumes/openhab/addons:/openhab/addons"
10+
- "./volumes/openhab/conf:/openhab/conf"
11+
- "./volumes/openhab/userdata:/openhab/userdata"
1512
environment:
1613
- OPENHAB_HTTP_PORT=4050
1714
- OPENHAB_HTTPS_PORT=4051
18-
- EXTRA_JAVA_OPTS=-Duser.timezone=Etc/UTC"
15+
- EXTRA_JAVA_OPTS=-Duser.timezone=Etc/UTC
16+
# logging:
17+
# options:
18+
# max-size: "5m"
19+
# max-file: "3"

docs/Containers/openHAB.md

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1-
# Openhab
1+
# openHAB
2+
23
## References
3-
- [Docker](https://hub.docker.com/r/openhab/openhab/)
4-
- [website](https://www.openhab.org/)
54

6-
openHAB has been added without Amazon Dashbutton binding. Port binding is `8080` for http and `8443` for https.
5+
- [DockerHub](https://hub.docker.com/r/openhab/openhab/)
6+
- [GitHub](https://github.com/openhab/openhab-docker)
7+
- [openHAB website](https://www.openhab.org/)
8+
9+
openHAB runs in "host mode" so there are no port mappings. The default port bindings on IOTstack are:
10+
11+
* 4050 - the HTTP port of the web interface (instead of 8080)
12+
* 4051 - the HTTPS port of the web interface (instead of 8443)
13+
* 8101 - the SSH port of the Console (since openHAB 2.0.0)
14+
* 5007 - the LSP port for validating rules (since openHAB 2.2.0)
15+
16+
If you want to change either of the first two:
17+
18+
1. Edit the `openhab` fragment in `docker-compose.yml`:
19+
20+
```
21+
- OPENHAB_HTTP_PORT=4050
22+
- OPENHAB_HTTPS_PORT=4051
23+
```
24+
25+
2. Recreate the openHAB container:
26+
27+
```
28+
$ cd ~/IOTstack
29+
$ docker-compose up -d openhab
30+
```
31+
32+
There do not appear to be any environment variables to control ports 8101 or 5007 so, if other containers you need to run also depend on those ports, you will have to figure out some way of resolving the conflict.
33+
34+
Note:
35+
36+
* The original IOTstack documentation included:
37+
38+
> openHAB has been added without Amazon Dashbutton binding.
39+
40+
but it is not clear if this is still the case.
41+
42+
* [Amazon Dashbuttons have been discontinued](https://www.theverge.com/2019/2/28/18245315/amazon-dash-buttons-discontinued) so this may no longer be relevant.
43+

0 commit comments

Comments
 (0)