Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smartpublicbuilding
openhab-pb-stack
Commits
82630616
Commit
82630616
authored
Feb 14, 2019
by
Dobli
Browse files
Added initial template for device containers
parent
5ba2a414
Changes
2
Hide whitespace changes
Inline
Side-by-side
building_manager.py
View file @
82630616
...
...
@@ -1299,7 +1299,8 @@ def service_add_menu(base_dir):
'Input an all lower case identifier:'
,
style
=
st
).
ask
()
if
service
and
host
and
identifier
:
add_postgres_service
(
base_dir
,
host
,
postfix
=
identifier
)
if
service
==
Service
.
POSTGRES
:
add_postgres_service
(
base_dir
,
host
,
postfix
=
identifier
)
def
service_modify_menu
(
base_dir
):
...
...
template_configs/docker-templates.yml
View file @
82630616
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment