Influx API Access

I know virtually nothing about docker. Looking to access the influxdb API from elsewhere. From what I’ve read I need to map port 8086 on the influxdb container but don’t know how and don’t want to mess up brewblox. Can anyone help?

Run brewblox-ctl service editor, and then visit the shown url in your browser to view the editor.

This shows the docker-compose.yml config file. Under services add

  influx:
    ports:
    - "8086:8086”

Note the number of indents: “influx” has two leading spaces.

Save the editor, and run brewblox-ctl up to apply the changes. The editor command will offer to do so when you close it down.

YAML is a configuration language that uses indenting to show nesting. If you’re not familiar with it: https://rollout.io/blog/yaml-tutorial-everything-you-need-get-started/ seems like a decent tutorial.

Edit: Example configuration

services:
  spark-one:
    command: --name=spark-one --mdns-port=${BREWBLOX_PORT_MDNS} --discovery=wifi --device-id=30003d001947383434353030
    image: brewblox/brewblox-devcon-spark:${BREWBLOX_RELEASE}
    labels:
    - traefik.port=5000
    - 'traefik.frontend.rule=PathPrefix: /spark-one'
    privileged: true
    restart: unless-stopped
  influx:
    ports:
    - "8086:8086"
version: '3.7'

Perfect. I edited the config and was able to do the ping on port 8086 from Postman.