Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- db:
- image: mysql
- environment:
- MYSQL_DATABASE: ninja
- MYSQL_ROOT_PASSWORD: ***
- volumes:
- - ./db:/var/lib/mysql
- app:
- image: invoiceninja/invoiceninja
- links:
- - db:mysql
- env_file: .env
- web:
- image: nginx
- volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf:ro
- - ./app:/var/www/app
- links:
- - app
- volumes_from:
- - app
- ports:
- - 8000:80
- environment:
- VIRTUAL_HOST: invoicing.mydomain.tld
- LETSENCRYPT_HOST: invoicing.mydomain.tld
- LETSENCRYPT_EMAIL: me@mydomain.tld
- TRUSTED_PROXIES: '51.xxx.xxx.xxx/28,172.17.0.0/24'
- 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'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement