mirror of
https://github.com/jbowdre/phpipam-agent-docker.git
synced 2024-11-29 01:42:19 +00:00
add PHPIPAM_RESET_AUTODISCOVER and PHPIPAM_REMOVE_DHCP parameters
This commit is contained in:
parent
f40dbbe08f
commit
715c90020a
2 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,8 @@ WORKDIR /opt/phpipam-agent
|
||||||
RUN cp config.dist.php config.php && \
|
RUN cp config.dist.php config.php && \
|
||||||
sed -i -e "s/\['key'\] = .*;/\['key'\] = getenv(\"PHPIPAM_AGENT_KEY\");/" \
|
sed -i -e "s/\['key'\] = .*;/\['key'\] = getenv(\"PHPIPAM_AGENT_KEY\");/" \
|
||||||
-e "s/\['pingpath'\] = .*;/\['pingpath'\] = \"\/usr\/sbin\/fping\";/" \
|
-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'\]\['host'\] = \"localhost\"/\['db'\]\['host'\] = getenv(\"PHPIPAM_DB_HOST\")/" \
|
||||||
-e "s/\['db'\]\['user'\] = \"phpipam\"/\['db'\]\['user'\] = getenv(\"PHPIPAM_DB_USER\")/" \
|
-e "s/\['db'\]\['user'\] = \"phpipam\"/\['db'\]\['user'\] = getenv(\"PHPIPAM_DB_USER\")/" \
|
||||||
-e "s/\['db'\]\['pass'\] = \"phpipamadmin\"/\['db'\]\['pass'\] = getenv(\"PHPIPAM_DB_PASS\")/" \
|
-e "s/\['db'\]\['pass'\] = \"phpipamadmin\"/\['db'\]\['pass'\] = getenv(\"PHPIPAM_DB_PASS\")/" \
|
||||||
|
|
|
@ -12,4 +12,6 @@ services:
|
||||||
- PHPIPAM_DB_PORT=3306
|
- PHPIPAM_DB_PORT=3306
|
||||||
- PHPIPAM_AGENT_KEY=2RuQ0rt4Rir29vGN4_1ZOqShcUX7PSUb
|
- PHPIPAM_AGENT_KEY=2RuQ0rt4Rir29vGN4_1ZOqShcUX7PSUb
|
||||||
- PHPIPAM_SCAN_INTERVAL=15m
|
- PHPIPAM_SCAN_INTERVAL=15m
|
||||||
|
- PHPIPAM_RESET_AUTODISCOVER=false
|
||||||
|
- PHPIPAM_REMOVE_DHCP=false
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
|
|
Loading…
Reference in a new issue