# Version 2 is the latest that is supported by docker-compose in # Ubuntu Xenial. version: '2' services: graphite: restart: always image: docker.io/graphiteapp/graphite-statsd network_mode: host volumes: - /etc/graphite-docker/graphite-statsd.conf:/etc/nginx/sites-enabled/graphite-statsd.conf:ro - /etc/graphite-docker/statsd.js:/opt/statsd/config/udp.js:ro - /etc/graphite-docker/graphite/conf/storage-schemas.conf:/opt/graphite/conf/storage-schemas.conf:ro - /etc/graphite-docker/graphite/conf/storage-aggregation.conf:/opt/graphite/conf/storage-aggregation.conf:ro - /etc/letsencrypt-certs:/etc/letsencrypt-certs:ro - /opt/graphite/storage:/opt/graphite/storage - /var/log/graphite:/var/log/