lippserd / docker-compose-icinga

docker-compose Icinga stack
92 stars 85 forks source link

env ICINGAWEB_MYSQL_PASSWORD is not propagated through configuration #38

Open brianredbeard opened 1 year ago

brianredbeard commented 1 year ago

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}
Tortue95 commented 1 year ago

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}