New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official Alpine Linux (AMD64) docker images - Testing #2425
Comments
Cool! I think official docker-compose.yaml with phpipam, mysql and nginx with common predifined settings would be also good addition to simplify phpipam docker unboxing expirience 8) |
Work-in-progress... docker-compose.yml version: '2'
services:
phpipam-web:
image: phpipam/phpipam-www:nightly
ports:
- "80:80"
environment:
- IPAM_DATABASE_HOST=phpipam-mariadb
- IPAM_DATABASE_PASS=change_me_phpipam_db_password
- IPAM_GMAPS_API_KEY=""
- IPAM_DATABASE_WEBHOST=%
restart: always
volumes:
- phpipam-logo:/phpipam/css/images/logo
depends_on:
- phpipam-mariadb
phpipam-cron:
image: phpipam/phpipam-cron:nightly
environment:
- IPAM_DATABASE_HOST=phpipam-mariadb
- IPAM_DATABASE_PASS=change_me_phpipam_db_password
restart: always
depends_on:
- phpipam-mariadb
phpipam-mariadb:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=change_me_mysql_root_password
restart: always
volumes:
- phpipam-db-data:/var/lib/mysql
volumes:
phpipam-db-data:
phpipam-logo:
|
Adding proxy support maybe something like this, if all containers in one docker network:
but this will require to change phpipam-web ports var and place predefined config into ./nginx/nginx.conf |
Hello, I think I've covered the common phpIPAM usage cases including proxy & discovery scanning.. https://hub.docker.com/u/phpipam please test Supported env
Example full stack deployment via docker-compose. Save and edit the the below configuration as docker-compose.yml and run # WARNING: Replace the example passwords with secure secrets.
# WARNING: 'my_secret_phpipam_pass' and 'my_secret_mysql_root_pass'
version: '3'
services:
phpipam-web:
image: phpipam/phpipam-www:nightly
ports:
- "80:80"
environment:
- TZ=Europe/London
- IPAM_DATABASE_HOST=phpipam-mariadb
- IPAM_DATABASE_PASS=my_secret_phpipam_pass
- IPAM_DATABASE_WEBHOST=%
- PROXY_ENABLED=1
- PROXY_SERVER=internal.proxy.url
- PROXY_PORT=3128
- PROXY_USE_AUTH=1
- PROXY_USER=proxyuser
- PROXY_PASS=proxypass
restart: unless-stopped
volumes:
- phpipam-logo:/phpipam/css/images/logo
depends_on:
- phpipam-mariadb
phpipam-cron:
image: phpipam/phpipam-cron:nightly
environment:
- TZ=Europe/London
- IPAM_DATABASE_HOST=phpipam-mariadb
- IPAM_DATABASE_PASS=my_secret_phpipam_pass
- SCAN_INTERVAL=1h
restart: unless-stopped
depends_on:
- phpipam-mariadb
phpipam-mariadb:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=my_secret_mysql_root_pass
restart: unless-stopped
volumes:
- phpipam-db-data:/var/lib/mysql
volumes:
phpipam-db-data:
phpipam-logo: |
Hello, I've also uploaded 1.4 docker images. |
Can you publish the Dockerfiles? |
@ChessSpider I'll upload the build scripts when I've had chance to clean them up. |
I've registered phpipam as a Docker Hub organisation (https://hub.docker.com/u/phpipam) and published containers for 1.3.2rev003 and current master. Access to the organisation can be shared but hopefully everything can be automated.
Dockerfile is based on #1944 & #829
The container expect an externally hosted MySQL database can be configured via the following environment variables:
Known outstanding issues:
Missing scheduled discovery/ping cron jobsPlease assist with testing
The text was updated successfully, but these errors were encountered: