pierrecdn / phpipam

phpIPAM Docker image
GNU Lesser General Public License v3.0
94 stars 111 forks source link

Added crontab support and switched to MariaDB #44

Open KG7QIN opened 5 years ago

KG7QIN commented 5 years ago

A few changes were made:

I also changed how this is built. By default now it uses docker-compose to build the container. This was done to support the changes that I made and allow the ability to update the contab file in the config directory and restart the container for the changes to take effect.

An entrypoint.sh file was added. This file will wait 90 seconds for MariaDB to be ready and either continue with initialization or quit. Once MariaDB is ready, the script will then start the cron service then execute the default entry point of docker-php-entrypoint with the argument of apache2-foreground, which starts Apache and PHP.

Additionally the database is now persistent across container rebuilds. Data from MariaDB is now kept in db_data/mysql.

leleobhz commented 1 year ago

It's possible to keep phpIpam image the way it was and use a docker-friendly scheduler service. I've suggested to use cron from Ofelia at https://github.com/pierrecdn/phpipam/issues/77#issuecomment-1507697898