Skip to content

Make the save to database configuration as environment variables #35

Description

@fatman00

Right now I am running openspeedtest using docker compose and was wondering if it is possible to configure it using environment variables to log the tests to a database instead of having to change or mount the index.html file in the container.

Current docker-compose file:

services:
    speedtest:
        restart: unless-stopped
        container_name: openspeedtest
        image: openspeedtest/latest
        networks:
          - traefik-public
        labels:
          - "traefik.enable=true"
          - "traefik.http.services.speedtest.loadbalancer.server.port=3000"
          - "traefik.http.routers.speedtest.priority=100"
          - "traefik.http.routers.speedtest.tls=true"
          - "traefik.http.routers.speedtest.rule=Host(`netbox.local`) && PathPrefix(`/speedtest`)"
          - "traefik.http.routers.speedtest.middlewares=strip-prefix"
          - "traefik.http.middlewares.strip-prefix.stripprefix.prefixes=/speedtest"
          - "traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=35000000"
          - "traefik.http.middlewares.limit.buffering.memRequestBodyBytes=35000000"
          - "traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=35000000"
          - "traefik.http.middlewares.limit.buffering.memResponseBodyBytes=35000000"
## FIXES found here: https://github.com/openspeedtest/Docker-Image/issues/9


networks:
  traefik-public:
    external: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions