mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-29 18:27:09 +01:00
make cron work in example
This commit is contained in:
@@ -2,7 +2,9 @@ DockerFile for invoice ninja (https://www.invoiceninja.com/)
|
|||||||
|
|
||||||
This image is based on `php:7` official version.
|
This image is based on `php:7` official version.
|
||||||
|
|
||||||
The easiest way to test Invoice Ninja with docker is by copying the example directory and run `docker-compose up`.
|
The easiest way to test Invoice Ninja with docker is by copying the example directory, run `docker-compose up` and visit http://localhost:8000/ .
|
||||||
The first launch could be slow because we create all tables and seed the database, but once youe see `NOTICE: ready to handle connections` all is ready.
|
The first launch could be slow because we create all tables and seed the database, but once youe see `NOTICE: ready to handle connections` all is ready.
|
||||||
|
|
||||||
To make your data persistent, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`.
|
To make your data persistent, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`.
|
||||||
|
|
||||||
|
All the supported environment variable can be found here https://github.com/invoiceninja/invoiceninja/blob/master/.env.example
|
||||||
|
|||||||
13
example/.env
Normal file
13
example/.env
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
APP_DEBUG=1
|
||||||
|
APP_URL=http://localhost:8000
|
||||||
|
DB_USERNAME=root
|
||||||
|
DB_PASSWORD=pwd
|
||||||
|
DB_HOST=mysql
|
||||||
|
MAIL_HOST=mail.service.host
|
||||||
|
MAIL_USERNAME=username
|
||||||
|
MAIL_PASSWORD=password
|
||||||
|
MAIL_DRIVER=smtp
|
||||||
|
MAIL_FROM_NAME="My name"
|
||||||
|
MAIL_FROM_ADDRESS=user@mail.com
|
||||||
@@ -11,10 +11,7 @@ services:
|
|||||||
image: invoiceninja/invoiceninja
|
image: invoiceninja/invoiceninja
|
||||||
links:
|
links:
|
||||||
- db:mysql
|
- db:mysql
|
||||||
environment:
|
env_file: .env
|
||||||
APP_DEBUG: 1
|
|
||||||
DB_USERNAME: root
|
|
||||||
DB_PASSWORD: pwd
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
@@ -25,15 +22,15 @@ services:
|
|||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
ports:
|
ports:
|
||||||
- 80
|
- 8000:80
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
image: invoiceninja/invoiceninja
|
image: invoiceninja/invoiceninja
|
||||||
links:
|
links:
|
||||||
- db:mysql
|
- db:mysql
|
||||||
user: www-data
|
env_file: .env
|
||||||
environment:
|
volumes_from:
|
||||||
APP_DEBUG: 1
|
- app
|
||||||
entrypoint: |
|
entrypoint: |
|
||||||
bash -c 'bash -s <<EOF
|
bash -c 'bash -s <<EOF
|
||||||
trap "break;exit" SIGHUP SIGINT SIGTERM
|
trap "break;exit" SIGHUP SIGINT SIGTERM
|
||||||
|
|||||||
Reference in New Issue
Block a user