docker-compose-icinga icon indicating copy to clipboard operation
docker-compose-icinga copied to clipboard

env ICINGAWEB_MYSQL_PASSWORD is not propagated through configuration

Open brianredbeard opened this issue 2 years ago • 1 comments

Attempting to deploy while setting ICINGAWEB_MYSQL_PASSWORD currently fails due to a bug on line 52 of docker-compose.yml: https://github.com/lippserd/docker-compose-icinga/blob/4bf4395d1959eca2608fdbeefcf616786f26f206/docker-compose.yml#L52

The line should instead set present as:

    icingaweb.resources.icingaweb-mysql.password: ${ICINGAWEB_MYSQL_PASSWORD:-icingaweb}

brianredbeard avatar Dec 23 '22 05:12 brianredbeard

the variable icingaweb.passwords.icingaweb2.icingaadmin is not also overloadable by the .env file

in order to correct these 2 problems without modifying the docker-compose.yml file I created the docker-compose.override.yml file with inside:

services:
  icingaweb:
    environment:
      icingaweb.passwords.icingaweb2.icingaadmin: ${ICINGAWEB_ICINGAADMIN_PASSWORD:-icinga}
      icingaweb.resources.icingaweb-mysql.password: ${ICINGAWEB_MYSQL_PASSWORD:-icingaweb}

Tortue95 avatar Mar 15 '23 11:03 Tortue95