diff --git a/Dockerfile b/Dockerfile index cc8f185..e656804 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,8 @@ WORKDIR /opt/phpipam-agent RUN cp config.dist.php config.php && \ sed -i -e "s/\['key'\] = .*;/\['key'\] = getenv(\"PHPIPAM_AGENT_KEY\");/" \ -e "s/\['pingpath'\] = .*;/\['pingpath'\] = \"\/usr\/sbin\/fping\";/" \ + -e "s/\['reset_autodiscover_addresses'\] = false/\['reset_autodiscover_addresses'\] = getenv(\"PHPIPAM_RESET_AUTODISCOVER\")/" \ + -e "s/\['remove_inactive_dhcp'\].*= false/\['remove_inactive_dhcp'\] = getenv(\"PHPIPAM_REMOVE_DHCP\")/" \ -e "s/\['db'\]\['host'\] = \"localhost\"/\['db'\]\['host'\] = getenv(\"PHPIPAM_DB_HOST\")/" \ -e "s/\['db'\]\['user'\] = \"phpipam\"/\['db'\]\['user'\] = getenv(\"PHPIPAM_DB_USER\")/" \ -e "s/\['db'\]\['pass'\] = \"phpipamadmin\"/\['db'\]\['pass'\] = getenv(\"PHPIPAM_DB_PASS\")/" \ diff --git a/example-docker-compose.yml b/example-docker-compose.yml index 8fdae83..35b7d6a 100644 --- a/example-docker-compose.yml +++ b/example-docker-compose.yml @@ -12,4 +12,6 @@ services: - PHPIPAM_DB_PORT=3306 - PHPIPAM_AGENT_KEY=2RuQ0rt4Rir29vGN4_1ZOqShcUX7PSUb - PHPIPAM_SCAN_INTERVAL=15m + - PHPIPAM_RESET_AUTODISCOVER=false + - PHPIPAM_REMOVE_DHCP=false - TZ=UTC