Skip to content

Is the compose example and documented env variables wrong? #158

@danielo515

Description

@danielo515

I tried the following command:

docker run -d -p 8000:8000 --name librenms \
  -v $(pwd)/data:/data \
  -e "DB_HOST=192.168.0.107" \
  -e "MYSQL_USER=user" \
  -e "MYSQL_PASSWORD=password" \
  librenms/librenms:latest

And I get this error: ERROR: Either DB_PASSWORD or DB_PASSWORD_FILE must be defined

Then I just changed to this:

docker run -d -p 8000:8000 --name librenms \
  -v $(pwd)/data:/data \
  -e "DB_HOST=192.168.0.107" \
  -e "MYSQL_USER=user" \
  -e "DB_PASSWORD=pass" \
  librenms/librenms:latest

And then at lest it tired to connect to the database. It is maybe the documentation wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions