Files
invoiceninja-docker/example/docker-compose.yml
Peter Spiess-Knafl 1e6c272b04 Remove duplicate ENV variables
Since the variables are passed through an .env file they no longer need to passed directly, right?
2017-02-04 09:00:42 +01:00

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'