Browse Source

docker: expose statsd endpoint for graphite block

Daniel Lee 8 years ago
parent
commit
799aaf720a

+ 1 - 0
docker/blocks/graphite1/Dockerfile

@@ -90,4 +90,5 @@ EXPOSE 80 2003-2004 2023-2024 8125/udp 8126
 VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/etc/nginx", "/opt/statsd", "/etc/logrotate.d", "/var/log"]
 VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/etc/nginx", "/opt/statsd", "/etc/logrotate.d", "/var/log"]
 WORKDIR /
 WORKDIR /
 ENV HOME /root
 ENV HOME /root
+ENV STATSD_INTERFACE udp
 CMD ["/sbin/my_init"]
 CMD ["/sbin/my_init"]

+ 2 - 0
docker/blocks/graphite1/docker-compose.yaml

@@ -3,6 +3,8 @@
     ports:
     ports:
       - "8080:80"
       - "8080:80"
       - "2003:2003"
       - "2003:2003"
+      - "8125:8125/udp"
+      - "8126:8126"
     volumes:
     volumes:
       - /etc/localtime:/etc/localtime:ro
       - /etc/localtime:/etc/localtime:ro
       - /etc/timezone:/etc/timezone:ro
       - /etc/timezone:/etc/timezone:ro