mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-01 03:57:25 +01:00
Since the variables are passed through an .env file they no longer need to passed directly, right?
44 lines
814 B
YAML
44 lines
814 B
YAML
version: "2"
|
|
|
|
services:
|
|
db:
|
|
image: mysql
|
|
environment:
|
|
MYSQL_DATABASE: ninja
|
|
MYSQL_ROOT_PASSWORD: pwd
|
|
|
|
app:
|
|
image: invoiceninja/invoiceninja
|
|
links:
|
|
- db:mysql
|
|
env_file: .env
|
|
|
|
web:
|
|
image: nginx
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
links:
|
|
- app
|
|
volumes_from:
|
|
- app
|
|
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'
|