Guest User

docker-compose

a guest
Jul 9th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.84 KB | None | 0 0
  1. version: '3'
  2. services:
  3.   influxdb:
  4.     image: influxdb:latest
  5.     container_name: influxdb
  6.     ports:
  7.      - '8086:8086'
  8.     restart: always
  9.     volumes:
  10.      - influxdb-storage:/var/lib/influxdb
  11.     environment:
  12.      - INFLUXDB_DB=db0
  13.       - INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_AUTH_ENABLED}
  14.       - INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
  15.       - INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
  16.   chronograf:
  17.     image: chronograf:latest
  18.     container_name: chronograf
  19.     ports:
  20.      - '127.0.0.1:8888:8888'
  21.     restart: always
  22.     volumes:
  23.      - chronograf-storage:/var/lib/chronograf
  24.     depends_on:
  25.      - influxdb
  26.     environment:
  27.      - INFLUXDB_URL=http://influxdb:8086
  28.       - INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
  29.       - INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
  30. volumes:
  31.   influxdb-storage:
  32.  chronograf-storage:
Add Comment
Please, Sign In to add comment