Skip to content

Latest commit

 

History

History

influxdbv2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

InfluxDB v2.x

This docker-compose enable you to deploy a InfluxDB v2.0.6. I talk about it in this Twitch Video

Project structure:

.
├── docker-compose.yaml
└── README.md

docker-compose.yaml

services:
  influxdb:
    container_name: influxdb
    image: quay.io/influxdb/influxdb:2.0.6
    volumes:
      - ./influxdb:/root/.influxdbv2/
    ports:
      - 8086:8086
    networks:
      - "viernes"

networks:
  viernes:
    external: true

After deploy this recipe, you're able to connect and configure InfluxDB connecting to http://localhost:8086. Note that this recipe will create a folder called "influxdb" to persist the data of the container.

Deploy with docker-compose

$ docker compose up -d
Creating influxdb ... 
Creating influxdb ... done

Expected result

Check containers are running and the port mapping:

$ docker ps

CONTAINER ID        IMAGE                                  COMMAND                  CREATED             STATUS              PORTS                    NAMES
f0f17daa5b49        quay.io/influxdb/influxdb:2.0.6        "/entrypoint.sh infl…"   44 seconds ago      Up 34 seconds       0.0.0.0:8086->8086/tcp   influxdb

page

Stop and remove the containers

$ docker-compose down

To delete all data, remove all named volumes by passing the -v arguments:

$ docker-compose down -v