Skip to content

Instantly share code, notes, and snippets.

@lexfrei
Last active March 15, 2018 10:32
Show Gist options
  • Select an option

  • Save lexfrei/f2ed8b9a457746f7ae3e79ec125f0595 to your computer and use it in GitHub Desktop.

Select an option

Save lexfrei/f2ed8b9a457746f7ae3e79ec125f0595 to your computer and use it in GitHub Desktop.
version: '2.2'
services:
openhab:
image: "openhab/openhab:2.2.0-amd64-debian"
restart: always
network_mode: host
tty: true
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "openhab_addons:/openhab/addons"
- "openhab_conf:/openhab/conf"
- "openhab_userdata:/openhab/userdata"
environment:
OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8443"
[root@pi openhab]# docker-compose up -d
ERROR: Version in "./docker-compose.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
[root@pi openhab]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: <unknown>
Go version: go1.8.3
Git commit: 774336d/1.13.1
Built: Wed Mar 7 17:14:49 2018
OS/Arch: linux/arm
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: <unknown>
Go version: go1.8.3
Git commit: 774336d/1.13.1
Built: Wed Mar 7 17:14:49 2018
OS/Arch: linux/arm
Experimental: false
[root@pi openhab]# docker-compose version
docker-compose version 1.9.0, build 2585387
docker-py version: 1.10.6
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment