Compare commits

...

10 Commits

Author SHA1 Message Date
Samuel Laulhau
64f7c71fde 2.7.2 2016-09-21 08:47:53 +02:00
Hillel Coren
9c57f7ac04 Merge pull request #17 from Cynomys/master
fixed ’README.md(cumpose=>compose)
2016-09-20 21:37:05 +03:00
Cynomys
5fea425fa9 fixed ’README.md(cumpose=>compose) 2016-09-20 10:18:19 -04:00
Sam
746df6f8a5 chown .env 2016-09-20 12:18:26 +02:00
Sam
f7d12106ec update readme 2016-09-20 12:06:33 +02:00
Sam
9e9f86b02f add cron service into docker-compose #16 2016-09-20 12:05:12 +02:00
Samuel Laulhau
f53573d200 2.7.1 2016-09-19 08:52:16 +02:00
Sam
cef311c024 chown www-data .env 2016-09-15 15:50:50 +02:00
Sam
ee81a9d181 chown .env 2016-09-15 15:35:32 +02:00
Samuel Laulhau
bd9e15fb3e 2.7 2016-09-12 14:55:22 +02:00
4 changed files with 22 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
# DOWNLOAD AND INSTALL INVOICE NINJA
#####
ENV INVOICENINJA_VERSION 2.6.11
ENV INVOICENINJA_VERSION 2.7.2
RUN curl -o invoiceninja.tar.gz -SL https://github.com/hillelcoren/invoice-ninja/archive/v${INVOICENINJA_VERSION}.tar.gz \
&& tar -xzf invoiceninja.tar.gz -C /var/www/ \

View File

@@ -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-compose run`.
To make your data persistant, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`.

View File

@@ -34,6 +34,9 @@ else
done
fi
chown www-data .env
chown www-data:www-data /var/www/app/.env
# php artisan optimize --force
# php artisan migrate --force
# php artisan db:seed --class=UpdateSeeder
exec "$@"

View File

@@ -21,3 +21,19 @@ web:
- app
ports:
- 80
cron:
image: invoiceninja/invoiceninja
links:
- db:mysql
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
sleep 30s
while /bin/true; do
DB_USERNAME=root DB_PASSWORD=mdp /usr/local/bin/php /var/www/app/artisan ninja:send-invoices
DB_USERNAME=root DB_PASSWORD=mdp /usr/local/bin/php /var/www/app/artisan ninja:send-reminders
sleep 1d
done
EOF'