FrankenPHP based Image for Invoice Ninja
ℹ️ Image will be deployed with each release of Invoice Ninja to https://hub.docker.com/r/benbrummer/invoiceninja for
arm64
andamd64
👑 Features
aligned with invoiceninja-debian
extended with
git clone https://github.com/benbrummer/dockerfiles.git
cd dockerfiles
- Make a copy of
sample.compose.yaml
namedcompose.yaml
and adapt it to your needs. A simple help menu for the image(s) can be displayed by runningdocker run --rm benbrummer/invoiceninja:5-octane --help
- Instead of defining environment variables inside the compose.yaml file, these need to be set in a
.env
file. Create a copy ofsample.env
file named.env
. - Open this file and insert your
APP_URL
,APP_KEY
and update the rest of the variables as required.
The APP_KEY
can be generated by running:
# If you haven't started the containers yet:
docker run --rm -it benbrummer/invoiceninja:5-octane frankenphp php-cli artisan key:generate --show
# Or if your containers are already running:
docker compose exec app frankenphp php-cli artisan key:generate --show
Copy the entire string and insert in the .env
file at APP_KEY=base64....
Prior to starting the container for the first time, open the .env file and update the IN_USER_EMAIL and IN_PASSWORD variables with your primary account.
This will take care of the initial account setup. You can later remove these .env variables.
⚠️ Warning
IfIN_USER_EMAIL
andIN_PASSWORD
are not set the default user email and password is "[email protected]" and "changeme!" respectively.
After the container has completed the first startup, you can delete these two environment variables.
Start the container with:
docker compose up -d
**Note: When performing the setup, the Database host is mariadb
To upgrade to a newer release image, update your compose.yaml first by running:
docker compose pull
docker compose up -d
It is recommended to perform a backup before updating.
If you discover a bug related to this image, please create an issue in this repository.
Support for Invoice Ninja itself can be requested trough the official ressources
./php/php.ini
is baked into the image as /usr/local/etc/php/conf.d/invoiceninja.ini
. Adapting php values to your needs is done by mounting additional ini-files
into /usr/local/etc/php/conf.d/
. The files are considered in alphabetical order. The last value will be taken.
x-app-volumes: &volumes
volumes:
# Modified php.ini overwrites the invoiceninja.ini baked into the image
- ./php/php.ini:/usr/local/etc/php/conf.d/invoiceninja.ini
ℹ️ To build just for a specific platform use
--set *.platform=linux/amd64
with thebake
command
docker buildx bake -f docker-bake.hcl
source version.sh
docker buildx bake -f docker-bake.hcl