]> git.giorgioravera.it Git - docker.git/commitdiff
Minor update
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 22 May 2020 11:55:21 +0000 (13:55 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 22 May 2020 11:55:21 +0000 (13:55 +0200)
homeassistant/docker-compose.yaml.host
xen-orchestra-ce/docker-compose.yaml

index ef2536d009ab493c7c596e51a9f5016c8d26e351..2dbd0c37094d8186e6ce2eb37af7c46e68810e43 100644 (file)
@@ -3,7 +3,7 @@ version: '3'
 services:
   homeassistant:
     container_name: homeassistant
-    image: homeassistant/home-assistant:stable
+    image: homeassistant/home-assistant:latest
     #command: --log-file /config/log/home-assistant.log
     restart: always
     #ports:
@@ -14,7 +14,7 @@ services:
     environment:
       - TZ=${DOCKER_TZ}
     #privileged: true
-    dns: 192.168.0.254 192.168.0.1
+    dns: 192.168.0.254
     volumes:
       - ${DOCKER_CFG_DIR}/homeassistant:/config
     network_mode: host
@@ -34,7 +34,7 @@ services:
 
   zigbee2mqtt:
     container_name: zigbee2mqtt
-    image: koenkk/zigbee2mqtt
+    image: koenkk/zigbee2mqtt:latest
     restart: always
     depends_on:
       - mosquitto
index 4436f8413b8b8efa2243dcefa0d79f1adaeb43da..c1e43e88dcd5444580e037559a5f23e46bfa8d99 100644 (file)
@@ -4,27 +4,26 @@ services:
   orchestra:
     container_name: XO_server
     image: ezka77/xen-orchestra-ce:latest
+    #image: ezka77/xen-orchestra-ce:5.58
     restart: unless-stopped
     #ports:
-    #  - 8080:8000
+    #  - "8000:8000"
     depends_on:
       - redis
     environment:
       - DEBUG=xo:main
       - NODE_ENV=production
       - XOA_PLAN=5
-      # To enable XO superuser features (ex: NFS mount) on the host
-      # uncomment the following lines, it will start XO as superuser
-      # and enable the privileged capabilities for this container (access
-      # host devices, ...) NB: it's a security issue, so be warned !
-      #- USER=root
       - TZ=${DOCKER_TZ}
     #privileged: true
+    # SYS_ADMIN should be enough capability to use NFS mount
+    cap_add:
+      - SYS_ADMIN
     volumes:
-      - ${DOCKER_CFG_DIR}/xen-orchestra-ce:/storage
+      - ${DOCKER_CFG_DIR}/xen-orchestra-ce/xo-data:/storage
     networks:
       - proxy
-    logging: &logging
+    logging: &default_logging
       driver: "json-file"
       options:
          max-size: "1M"
@@ -51,11 +50,11 @@ services:
     environment:
       - TZ=${DOCKER_TZ}
     volumes:
-      - ${DOCKER_CFG_DIR}/xen-orchestra-ce:/data
+      - ${DOCKER_CFG_DIR}/xen-orchestra-ce/redis-data:/data
     networks:
       - proxy
     logging:
-      <<: *logging
+      <<: *default_logging
 
 networks:
   proxy: