Public | Automated Build

Last pushed: 14 hours ago
Short Description
phpIPAM web IP address management application.
Full Description

docker-phpipam

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

How to use this Docker image

Mysql

Run a MySQL database, dedicated to phpipam

$ docker run --name phpipam-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -v /my_dir/phpipam:/var/lib/mysql -d mysql:5.6

Here, we store data on the host system under /my_dir/phpipam and use a specific root password.

Phpipam

$ docker run -ti -d -p 80:80 --name ipam --link phpipam-mysql:mysql pierrecdn/phpipam

We are linking the two containers and expose the HTTP port.

Specific integration (HTTPS, multi-host containers, etc.)

Regarding your requirements and docker setup, you've to expose resources.

For HTTPS, run a reverse-proxy in front of your phpipam container and link it to.

For multi-host containers, expose ports, run etcd or consul to make service discovery works etc.

Configuration

  • Browse to http://<ip>[:<specific_port>]/
  • Step 1 : Choose 'Automatic database installation'

  • Step 2 : Re-Enter connection information

  • You're done !

Docker compose

You can create an all-in-one YAML deployment descriptor with Docker compose, like this :

ipam:
  image: pierrecdn/phpipam
  ports:
   - "80:80"
  links:
   - phpipam-mysql
phpipam-mysql:
  image: mysql:5.6
  environment: 
   - MYSQL_ROOT_PASSWORD=my-secret-pw
  volumes:
   - /my_dir/phpipam:/var/lib/mysql

And next :

$ docker-compose up -d

Notes

phpIPAM is under heavy development by the amazing Miha.
To upgrade the release version, just change the PHPIPAM_VERSION environment variable to the target release (see here)

Docker Pull Command
Owner
clinta
Source Repository

Comments (6)
marckoser14
4 days ago

I'm getting the error":
"Error: No LDAP support for PHP. See: http://www.php.net/ldap"
It looks like the needed php-ldap packages are installed in the container.
Do you have any ideas on this?

klinnex
14 days ago

In addition :
Normally you need just add the line bellow on the dockerfile

docker-php-ext-install pcntl

klinnex
14 days ago

Hello,

Great job,

Just for information... For discover host on subnet .. We have an issues :

"Threading is required for scanning subnets. Please recompile PHP with pcntl extension"

Can you do something?

grizzthedj
3 months ago

What are the differences between this image and pierrecdn/phpipam? Also, you have pierrecdn/phpipam as the image in your docker-compose section

unicornsandpiper
5 months ago

Yes, it does. I had to manually add the phpipam user @the docker IP to get it to work right. Goofy.

kilo
a year ago

Unfortunately this container does not work. During set up it fails after using phpipam user for database login even though you specify root