Influxdb 설치

2021. 12. 26. 15:31Data

https://hub.docker.com/_/influxdb

 

Influxdb - Official Image | Docker Hub

We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy

hub.docker.com

docker pull influxdb

# influxdb 환경변수 셋팅

set INFLUXDB_HOME=디렉토리
set

docker-compose.yml 생성

version: "3.7"
services:
    influxdb:
        image: influxdb:latest
        restart: always
        hostname: 원하는 도메인
        ports:
            - 8086:8086
        volumes:
            - $INFLUXDB_HOME:/var/lib/influxdb2

docker-compose up -d

생성한 influxdb에 접속

계정/비밀번호/조직/Bucket 생성 : Bucket은 데이터베이스라고 생각하면 좋을 듯

Data > API Tokens > Grenerate API Token > Read/Write API Token

Read : Scoped, 생성한 Bucket 선택

Write : Scoped, 생성한 Bucket 선택

Save

 

'Data' 카테고리의 다른 글

Flux 문법  (0) 2022.02.03
InfluxDB 연동  (0) 2021.12.26
기상청 과거자로 URL  (0) 2019.11.18
기상청 과거 날씨 데이터  (0) 2019.11.13
기상청 API URL  (0) 2019.11.09