Theme is not persistent

This option is not persistent in docker, but other options are, I have to configure it in docker-compose

Screenshot-2024-09-01_18-38-39

When V6 comes out is it rather recommended to use docker compose to configure options or web interface/toml?

This is the preferred way of setting config values (vs manually editing the toml file/using the web interface) This may change/evolve over time.``

It is recommended that you use environment variables to configure the Pi-hole docker container (more details below), however if you are persisting your /etc/pihole directory, you may choose instead to set them via the web interface or by directly editing pihole.toml.``

Can you please share your compose file?

services:
  pihole:
    image: pihole/pihole:development-v6
    network_mode: "host"
    environment:
      - TZ=Europe/Paris
      - FTLCONF_webserver_interface_theme=default-darker
    volumes:
      - ./etc-pihole:/etc/pihole
    cap_add:
      - NET_ADMIN
    restart: unless-stopped

I can't replicate the issue.

I tested 2 different scenarios:

1) Setting the option via environment variable (FTLCONF_webserver_interface_theme=default-darker):

  • I created a container with FTLCONF_webserver_interface_theme=default-darker. The web interface was correctly started with the Pi-hole Deep-midnight theme (just like in your screenshot above).
  • the option cannot be changed via web interface. This is expected because the option was set using an environment variable.
  • also, the option persists if I stop and restart the container.

2) Starting the container without setting a theme:

  • I created the container without setting a theme (no env var for theme);
  • then I manually set a theme via web interface. The setting was saved and applied;
  • the option persists if I stop and restart the container.

Please explain in which cases the option is not persisting for you.

Also, upload a debug log and post just the token URL that is generated after the log is uploaded. The command pihole -d needs to be executed inside Pi-hole container, using docker exec.

From your host machine, run this command:

docker exec -it pihole pihole -d