Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Environment variable for defaulting to dark theme #30

Open
librick opened this issue Dec 11, 2023 · 0 comments
Open

Comments

@librick
Copy link

librick commented Dec 11, 2023

Hey, great project! I'm working on setting up a media server using docker containers, and Doku is a great way for me to keep an eye on disk usage. My goal for my project is to allow anyone to spin up a media server with really good defaults.

I think it would be beneficial to have an environment variable/configuration option to control the default theme for Doku. I prefer the dark theme, but Doku currently defaults to the light theme. It'd be great if I could modify the environment of my docker-compose.yml file to tell Doku to start with the dark theme by default (i.e., with no user action).

Something like DOKU_THEME=<light|dark>.
Then my docker-compose.yml file could look like:

  doku:
    image: amerkurev/doku:v0.0.16
    ports:
      - 9090:9090
    environment:
        DOKU_THEME=dark
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /:/hostroot:ro

This pattern of declarative configuration using environment variables with the DOKU_ prefix is really powerful and I think would be useful for anyone who wants to run Doku in containers.

This is a really great project, thanks for contributing to open source!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant