alpine working image

This commit is contained in:
Sam
2017-03-13 16:58:35 +01:00
parent fae767223f
commit 81075f2595
3 changed files with 21 additions and 21 deletions

View File

@@ -24,20 +24,20 @@ services:
ports:
- 8000:80
cron:
image: invoiceninja/invoiceninja
links:
- db:mysql
env_file: .env
volumes_from:
- app
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
sleep 300s
while /bin/true; do
/usr/local/bin/php /var/www/app/artisan ninja:send-invoices
/usr/local/bin/php /var/www/app/artisan ninja:send-reminders
sleep 1d
done
EOF'
# cron:
# image: invoiceninja/invoiceninja
# links:
# - db:mysql
# env_file: .env
# volumes_from:
# - app
# entrypoint: |
# bash -c 'bash -s <<EOF
# trap "break;exit" SIGHUP SIGINT SIGTERM
# sleep 300s
# while /bin/true; do
# /usr/local/bin/php /var/www/app/artisan ninja:send-invoices
# /usr/local/bin/php /var/www/app/artisan ninja:send-reminders
# sleep 1d
# done
# EOF'