helium-dashboard icon indicating copy to clipboard operation
helium-dashboard copied to clipboard

Docker compose

Open dqcenter opened this issue 2 years ago • 4 comments

Any chance to add a docker compose file for whole stack? Thanks

dqcenter avatar May 06 '22 11:05 dqcenter

I personally wasn't planning on it right now. But, feel free to put in a PR if you get something going.

konstk1 avatar May 06 '22 13:05 konstk1

I agree. I would love this in docker.

benisai avatar Jun 09 '22 01:06 benisai

I let it run over the Docker container but the cronjob doesn't work properly. Only a manual "npm start" writes the data to the Influx DB.

Execution at Fri Jun 17 2022 09:57:00 GMT+0000 (Coordinated Universal Time) Processing helium Helium: rejected -> Error: Cannot read properties of undefined (reading 'split') Error: Cannot read properties of undefined (reading 'split') crond[1]: USER root pid 14993 cmd /usr/local/bin/node /app/test/test_lambda.js >> /dev/stdout 2>&1 Influx: initializing Running lambda... Node ver: v17.9.1 Received event: {

How can I solve this problem ?

If I can see the folder structure where I can embed everything in a Linux system, that would also be a great help. Thank you for your time and support. thx Daniel

Leilei0106 avatar Jun 17 '22 10:06 Leilei0106

There was an example here: https://github.com/konstk1/helium-dashboard/pull/9

My current production config (using my fork) looks like this:

  helium-poller:
    build:
      context: ./helium-dashboard
      labels:
        - autoheal=false
    image: helium-dashboard:latest
    depends_on:
      - influxdb
    environment:
      INFLUX_HOST: ${MONITORING_HOST}
      INFLUX_PORT: 8086
      INFLUX_BUCKET: helium
      INFLUX_ORG: myorg
      INFLUX_TOKEN: ${INFLUX_WRITE_TOKEN}
      HELIUM_WALLET: ${HELIUM_WALLET}
      HELIUM_HOTSPOT: ${HELIUM_HOTSPOT}
      HELIUM_ACTIVITY_LOOKBACK_HOURS: 8
      #DEBUG_TO_CONSOLE: 1
      TZ: Europe/Berlin

ThomDietrich avatar Aug 18 '22 09:08 ThomDietrich