설치 및 업그레이드 > ThingWorx 설치 > ThingWorx Docker 사용 > 단일 서버 환경에서 ThingWorx Docker 사용 > 외부 InfluxDB를 ThingWorx Docker의 데이터 공급자로 사용
외부 InfluxDB를 ThingWorx Docker의 데이터 공급자로 사용
다음 예는 외부 데이터베이스를 사용하는 InfluxDB용 Docker Compose 파일입니다.
# This file defines service dependencies. Sometimes it is convienent to
# only start certain services so this is not part of the main compose.
version: '2.4'
services:
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
env_file:
- 'env.influxdb'
volumes:
# Data persistency
# sudo mkdir -p /srv/docker/influxdb/data
- /srv/docker/influxdb/data:/var/lib/influxdb
healthcheck:
test: "curl -f http://localhost:8086/ping"
interval: 3s
timeout: 10s
retries: 5
외부 사례에 InfluxDB 데이터베이스 및 스키마를 설정하는 방법에 대한 자세한 내용은 ThingWorx 도움말 센터의 InfluxDB를 지속성 공급자로 사용을 참조하십시오.
InfluxDB 공식 이미지에 대한 자세한 내용은 https://hub.docker.com/_/influxdb에서 확인할 수 있습니다.
도움이 되셨나요?