mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
53 lines
953 B
YAML
53 lines
953 B
YAML
version: "2"
|
|
|
|
services:
|
|
db:
|
|
image: mysql:8
|
|
env_file: .env
|
|
restart: always
|
|
volumes:
|
|
- data-volume:/var/lib/mysql
|
|
|
|
app:
|
|
image: invoiceninja/invoiceninja
|
|
links:
|
|
- db:mysql
|
|
env_file: .env
|
|
restart: always
|
|
volumes:
|
|
- ./srv/invoiceninja/storage:/var/www/app/storage:rw
|
|
- ./srv/invoiceninja/logo:/var/www/app/public/logo:rw
|
|
|
|
web:
|
|
image: nginx:1
|
|
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
|
|
./artisan ninja:send-invoices
|
|
./artisan ninja:send-reminders
|
|
sleep 1h
|
|
done
|
|
EOF'
|
|
|
|
volumes:
|
|
data-volume:
|
|
|