Parcourir la source

added netdata

dirkse il y a 9 ans
Parent
commit
865a8434a2
3 fichiers modifiés avec 33 ajouts et 4 suppressions
  1. 17 0
      netdata/Dockerfile
  2. 1 2
      pypy/Dockerfile
  3. 15 2
      services.yml

+ 17 - 0
netdata/Dockerfile

@@ -0,0 +1,17 @@
+FROM resin/rpi-raspbian:jessie-20161026
+
+RUN apt-get update
+
+RUN apt-get install -y git
+
+RUN git clone https://github.com/firehol/netdata.git /netdata.git --depth=1
+
+RUN cd /netdata.git && chmod +x ./docker-build.sh && sync && sleep 1 && ./docker-build.sh
+
+WORKDIR /
+
+ENV NETDATA_PORT 19999
+EXPOSE $NETDATA_PORT
+
+CMD /usr/sbin/netdata -D -s /host -p ${NETDATA_PORT}
+

+ 1 - 2
pypy/Dockerfile

@@ -1,7 +1,6 @@
 FROM resin/rpi-raspbian:jessie-20161026
 
-RUN echo "deb http://archive.raspbian.org/raspbian jessie main" >> /etc/apt/sources.list &&\
-    apt-get update
+RUN apt-get update
 
 RUN apt-get install -y pypy
 

+ 15 - 2
services.yml

@@ -2,7 +2,7 @@
 
 domoticz:
   host: himbeere
-  fqdn: home.cere.duckdns.org
+  fqdn: domo.cere.duckdns.org
   docker:
     build: domoticz
     image: domoticz
@@ -12,6 +12,19 @@ domoticz:
     #ports: 8080:8080
     devices: /dev/ttyUSB0
 
+netdata:
+  host: himbeere
+  #~ fqdn: netdata.cere.duckdns.org
+  docker:
+    build: netdata
+    # image: reneluria/netdata
+    cap_add: SYS_PTRACE
+    volumes:
+    - /proc:/host/proc:ro
+    - /sys:/host/sys:ro
+    - /var/run/docker.sock:/var/run/docker.sock
+    ports: 0.0.0.0:19999:19999
+
 # https://github.com/mkueper/rpi-svn/blob/master/Dockerfile
 svn:
   host: himbeere
@@ -29,7 +42,7 @@ ngp:
       build: ngp
       ports: 192.168.178.43:1080:80, 192.168.178.43:1443:443
       volumes:
-        - /usr/share/nginx/html
+        - /opt/fast/nginx/htpasswd:/etc/nginx/htpasswd \
         - /var/run/docker.sock:/tmp/docker.sock:ro
         - /opt/fast/nginx/certs:/etc/nginx/certs:ro
         # see https://github.com/jwilder/nginx-proxy#per-virtual_host