Use example below to setup InfluxDB docker container. You can then access to GUI from your browser via http://{network-gateway-ip or container-ip}:8086 with influxdb:influxdb.

Service

version: '3'

services:

    influxdb:
        build:
            context: ./docker/influxdb
        hostname: influxdb
        ports:
            - 8086:8086
        volumes:
          - ./var/docker/data/influxdb:/var/lib/influxdb:cached
        environment:
            INFLUXDB_USER: influxdb
            INFLUXDB_USER_PASSWORD: influxdb

#docker #influxdb

InfluxDB Service Configuration for Docker Compose
1.60 GEEK