mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-01 03:57:25 +01:00
46 lines
896 B
YAML
46 lines
896 B
YAML
version: "2"
|
|
|
|
services:
|
|
db:
|
|
image: mysql
|
|
environment:
|
|
MYSQL_DATABASE: ninja
|
|
MYSQL_ROOT_PASSWORD: pwd
|
|
volumes:
|
|
- ./var/mysql:/var/lib/mysql
|
|
|
|
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'
|