diff --git a/README.md b/README.md index c398f11..2d816c6 100644 --- a/README.md +++ b/README.md @@ -2,30 +2,6 @@ DockerFile for invoice ninja (https://www.invoiceninja.com/) This image is based on `php:7` official version. -The easiest way to try this image is via docker compose : - -``` -db: - image: mysql - environment: - MYSQL_DATABASE: ninja - MYSQL_ROOT_PASSWORD: mdp - -app: - image: invoiceninja/invoiceninja - links: - - db:mysql - -web: - image: nginx - volumes: - - ./nginx.conf:/etc/nginx/nginx.conf:ro - links: - - app - volumes_from: - - app - ports: - - 80 -``` +The easiest way to try this image is by cloning this repos and run `docker-cumpose run`. To make your data persistant, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`. diff --git a/app-entrypoint.sh b/app-entrypoint.sh index aeca4c4..7ff35ec 100644 --- a/app-entrypoint.sh +++ b/app-entrypoint.sh @@ -34,6 +34,8 @@ else done fi -chown www-data:www-data .env +# php artisan optimize --force +# php artisan migrate --force +# php artisan db:seed --class=UpdateSeeder exec "$@"