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
arm64andamd64
👑 Features
aligned with invoiceninja-debian
extended with
git clone https://github.com/benbrummer/dockerfiles.git
cd dockerfiles- Make a copy of
sample.compose.yamlnamedcompose.yamland 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
.envfile. Create a copy ofsample.envfile named.env. - Open this file and insert your
APP_URL,APP_KEYand 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 --showCopy 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_EMAILandIN_PASSWORDare 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 -dIt 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/amd64with thebakecommand
docker buildx bake -f docker-bake.hclsource version.sh
docker buildx bake -f docker-bake.hcl