Docker files for Invoice Ninja
Dockerfile Shell
Latest commit e033208 Aug 8, 2018
Permalink
Failed to load latest commit information.
alpine 4.5.2 Aug 8, 2018
docker-compose use mysql 5 in docker-compose Apr 30, 2018
Dockerfile 4.5.2 Aug 8, 2018
LICENSE Initial commit Oct 4, 2015
README.md fix readme for image base Jan 14, 2018
entrypoint.sh chmod entrypoint in repo Jul 29, 2018

README.md

DockerFile for invoice ninja (https://www.invoiceninja.com/)

This image is based on php:7.0-fpm official version.

To make your data persistent, you have to mount /var/www/app/public/logo and /var/www/app/storage.

Usage

To run it:

docker run -d
  -e APP_ENV='production'
  -e APP_DEBUG=0
  -e APP_URL='http://ninja.dev'
  -e APP_KEY='SomeRandomStringSomeRandomString'
  -e APP_CIPHER='AES-256-CBC'
  -e DB_TYPE='mysql'
  -e DB_STRICT='false'
  -e DB_HOST='localhost'
  -e DB_DATABASE='ninja'
  -e DB_USERNAME='ninja'
  -e DB_PASSWORD='ninja'
  -p '80:80'
  invoiceninja/invoiceninja

A list of environment variables can be found here

With docker-compose

A pretty ready to use docker-compose configuration can be found into ./docker-compose. Rename .env.example into .env and change the environment's variable as needed. The file assume that all your persistent data is mounted from /srv/invoiceninja/. Once started the application should be accessible at http://localhost:8000/

Know issue

Phantomjs doesn't work on linux alpine https://github.com/ariya/phantomjs/issues/14186