Docker container for a stand-alone InvoicePlane.
This container is based on php7-apache. In php7 the mysql database driver is
deprecated and the mysqli driver shoudl be used.
I recommend to persist at least the
files. So configuration won't be lost over recreation.
(But you can also run without and modify the files in the container.)
The apache server is reachable throw http(80), this is ok for local use.
If you want a remote setup use an reverse proxy with a https connection.
In this case invoiceplane protocol detection won't work, because the local
connection (from the apache to the php interpreter) is unencrypted and the php
variable $_SERVER['https'] is not set. This will cause most browsers to unload
//$config['protocol'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://'); $config['protocol'] = 'https://';
You need to link a database container.
To persist files to the host, the image extracts the invoiceplane installation
to /usr/src and copies them to /var/www/html on container run.
- cp -Ru holdes the files last modified.
- VOLUME /var/www/html makes all invoiceplane files mappable.