mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-06 06:27:25 +01:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64f7c71fde | ||
|
|
9c57f7ac04 | ||
|
|
5fea425fa9 | ||
|
|
746df6f8a5 | ||
|
|
f7d12106ec | ||
|
|
9e9f86b02f | ||
|
|
f53573d200 | ||
|
|
cef311c024 | ||
|
|
ee81a9d181 | ||
|
|
bd9e15fb3e |
@@ -25,7 +25,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
|
|||||||
# DOWNLOAD AND INSTALL INVOICE NINJA
|
# 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 \
|
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/ \
|
&& tar -xzf invoiceninja.tar.gz -C /var/www/ \
|
||||||
|
|||||||
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.
|
This image is based on `php:7` official version.
|
||||||
|
|
||||||
The easiest way to try this image is via docker compose :
|
The easiest way to try this image is by cloning this repos and run `docker-compose run`.
|
||||||
|
|
||||||
```
|
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|
||||||
To make your data persistant, you have to mount `/var/www/app/public/logo` and `/var/www/app/storage`.
|
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
|
done
|
||||||
fi
|
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 "$@"
|
exec "$@"
|
||||||
|
|||||||
@@ -21,3 +21,19 @@ web:
|
|||||||
- app
|
- app
|
||||||
ports:
|
ports:
|
||||||
- 80
|
- 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