Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- influxdb:
- image: influxdb:latest
- container_name: influxdb
- ports:
- - '8086:8086'
- restart: always
- volumes:
- - influxdb-storage:/var/lib/influxdb
- environment:
- - INFLUXDB_DB=db0
- - INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_AUTH_ENABLED}
- - INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- - INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
- chronograf:
- image: chronograf:latest
- container_name: chronograf
- ports:
- - '127.0.0.1:8888:8888'
- restart: always
- volumes:
- - chronograf-storage:/var/lib/chronograf
- depends_on:
- - influxdb
- environment:
- - INFLUXDB_URL=http://influxdb:8086
- - INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- - INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
- volumes:
- influxdb-storage:
- chronograf-storage:
Add Comment
Please, Sign In to add comment