Commit 82630616 authored by Dobli's avatar Dobli
Browse files

Added initial template for device containers

parent 5ba2a414
......@@ -1299,6 +1299,7 @@ def service_add_menu(base_dir):
'Input an all lower case identifier:', style=st).ask()
if service and host and identifier:
if service == Service.POSTGRES:
add_postgres_service(base_dir, host, postfix=identifier)
......
......@@ -227,3 +227,14 @@ services:
placement:
constraints:
- node.role == manager
zwave_oh:
image: docker
command: "docker run --rm --name device_oh --network habnet -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v openhab_zwave_conf:/openhab/conf -v openhab_zwave_userdata:/openhab/userdata -p 9898:8080 openhab/openhab:2.4.0"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- habnet
deploy:
placement:
constraints:
- node.labels.device == zwave
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment