mirror of
https://github.com/jbowdre/phpipam-agent-docker.git
synced 2024-12-27 05:02:19 +00:00
phpIPAM-agent Docker image
build.sh | ||
buildx.sh | ||
Dockerfile | ||
entrypoint.sh | ||
LICENSE | ||
php.ini | ||
README.md |
phpipam-agent
phpIPAM is an open-source web IP address management application. Its goal is to provide light and simple IP address management application.
phpIPAM is developed and maintained by Miha Petkovsek, released under the GPL v3 license, project source is here
Learn more on phpIPAM homepage
This container can be used as a discovery scan agent.
How to use this Docker image
Setup PHPIPAM
-
Configure a remote agent (Administration > scan agents), get the key.
-
For each subnet, enable scan & configure the remote agent by selecting a remote.
Run this container
version: '2'
services:
phpipam-agent:
container_name: phpipam-agent
restart: unless-stopped
image: mc303/phpipam-agent:latest
environment:
- MYSQL_ENV_MYSQL_HOST=10.10.1.10
- MYSQL_ENV_MYSQL_DATABASE=phpipam
- MYSQL_ENV_MYSQL_USER=phpipam
- MYSQL_ENV_MYSQL_PASSWORD=phpipam
- MYSQL_ENV_MYSQL_PORT=3307
- PHPIPAM_AGENT_KEY=abcder1223456xczxcsad
- CRON_SCHEDULE=*/15 * * * *
- TZ=Europe/Amsterdam
ports:
- "3306:3306"
Now, the discovery scans will be performed every 1mn by default.
The logs are available on stdout/stderr (allowing to use docker logs
).
Acknowledgements
Based on pierrecdn/phpipam-agent, published on docker hub.