mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-01 12:07:26 +01:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64f7c71fde | ||
|
|
9c57f7ac04 | ||
|
|
5fea425fa9 | ||
|
|
746df6f8a5 | ||
|
|
f7d12106ec | ||
|
|
9e9f86b02f | ||
|
|
f53573d200 | ||
|
|
cef311c024 | ||
|
|
ee81a9d181 | ||
|
|
bd9e15fb3e | ||
|
|
7b040d5343 | ||
|
|
f9c7390138 |
@@ -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.8
|
||||
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/ \
|
||||
@@ -47,6 +47,7 @@ ENV APP_KEY SomeRandomString
|
||||
ENV LOG errorlog
|
||||
ENV APP_DEBUG 0
|
||||
ENV APP_CIPHER rijndael-128
|
||||
ENV SELF_UPDATER_SOURCE ''
|
||||
|
||||
|
||||
#use to be mounted into nginx for exemple
|
||||
|
||||
26
README.md
26
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-compose run`.
|
||||
|
||||
To make your data persistant, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`.
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user