Browse Source

Caddy section lacked data persist volumes (#8999)

The Docker Compose example in the Caddy section didn't include the important volumes:
      - netdatalib:/var/lib/netdata
      - netdatacache:/var/cache/netdata
Ashley 4 years ago
parent
commit
8a2b8ccedc
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packaging/docker/README.md

+ 6 - 0
packaging/docker/README.md

@@ -261,11 +261,17 @@ services:
     security_opt:
       - apparmor:unconfined
     volumes:
+      - netdatalib:/var/lib/netdata
+      - netdatacache:/var/cache/netdata
       - /etc/passwd:/host/etc/passwd:ro
       - /etc/group:/host/etc/group:ro
       - /proc:/host/proc:ro
       - /sys:/host/sys:ro
       - /var/run/docker.sock:/var/run/docker.sock:ro
+
+volumes:
+  netdatalib:
+  netdatacache:
 ```
 
 ### Restrict access with basic auth