瀏覽代碼

upped domoticz

dirkse 8 年之前
父節點
當前提交
68566bed70
共有 5 個文件被更改,包括 33 次插入5 次删除
  1. 2 2
      autocli.yml
  2. 4 3
      domoticz/Dockerfile
  3. 二進制
      domoticz/domoticz_linux_armv7l.tgz
  4. 23 0
      hosts.yml
  5. 4 0
      services.yml

+ 2 - 2
autocli.yml

@@ -8,6 +8,8 @@ path:
     cache: t:\autocli_home\cache
     download: t:\autocli_home
 
+    inventory: c:\apps\_home\hosts.yml
+
 ssh:
     user: rothe
 
@@ -24,5 +26,3 @@ image:
 service:
     infrastructure: c:\apps\_home\services.yml
 
-docker_host:
-    names: [himbeere]

+ 4 - 3
domoticz/Dockerfile

@@ -18,9 +18,10 @@ RUN \
   rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 # Expose port.
-EXPOSE 8080
+EXPOSE 80
 
-CMD ["/root/domoticz/domoticz", "-www", "8080"]
+CMD ["/root/domoticz/domoticz", "-www", "80"]
 
+# https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
 ADD domoticz_linux_armv7l.tgz /root/domoticz
-HEALTHCHECK --interval=10s CMD curl -sS --fail http://localhost:8080 || exit 1
+HEALTHCHECK --interval=10s CMD curl -sS --fail http://localhost:80 || exit 1

二進制
domoticz/domoticz_linux_armv7l.tgz


+ 23 - 0
hosts.yml

@@ -0,0 +1,23 @@
+---
+# see https://github.com/ansible/ansible/blob/devel/examples/hosts.yaml
+all:
+  vars:
+    # either ssh_managed or docker_managed
+    auto_mode: docker_managed
+
+    # does this host expose a docker engine
+    docker_on: true
+    # manage docker installation via ansible
+    docker_setup: false
+    docker_engine_port: 4243
+    # binding to 0.0.0.0 is pretty unsecure - so don't do this somewhere else!
+    docker_engine_bind: 127.0.0.1
+    docker_namespace: false
+    docker_graph:
+    docker_storage_driver: overlay2
+
+  hosts:
+    himbeere:
+      ansible_ssh_host: cere.duckdns.org
+      docker_engine_host: localhost
+      docker_engine_port: 10243

+ 4 - 0
services.yml

@@ -117,6 +117,10 @@ rsync:
       - /etc/localtime:/etc/localtime
       - /mnt/ssdext/data:/opt/from
       - /mnt/hddext/backup:/opt/to
+    restart_policy:
+      always: 3
+
+
 
 gogs:
   host: himbeere