Reputation: 33
I use Docker compose in my project. In which i start my Influxdb container as well.
That should show this screen:
Here's my docker compose code for influx:
influxdb:
image: influxdb:latest
ports:
- $INFLUXDB_PORT:$INFLUXDB_PORT
env_file: ./.env
environment:
INFLUXDB_DB: $INFLUXDB_DB
INFLUXDB_ADMIN_USER: $INFLUXDB_ADMIN_USER
INFLUXDB_ADMIN_PASSWORD: $INFLUXDB_ADMIN_PASSWORD
volumes:
- ./influxdb_data:/var/lib/influxdb
restart: unless-stopped
Upvotes: 0
Views: 14