Installation and Upgrade > Installing ThingWorx > Using ThingWorx Docker > Using ThingWorx Docker in a Single-Server Environment > Using an External InfluxDB to Use as Data Provider for ThingWorx Docker
Using an External InfluxDB to Use as Data Provider for ThingWorx Docker
The following example is a Docker Compose file for InfluxDB that uses an external database:
# 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
For information on setting up your InfluxDB database and schema in external cases, refer to Using InfluxDB as the Persistence Provider.
Detailed information on InfluxDB official images is available at https://hub.docker.com/_/influxdb.
Was this helpful?