forked from invoiceninja/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "2"
services:
db:
image: mysql:5
restart: unless-stopped
networks:
- net
volumes:
- ./data/db:/var/lib/mysql
env_file: .env
app:
image: invoiceninja/invoiceninja
restart: unless-stopped
networks:
- net
links:
- db:mysql
env_file: .env
volumes:
- ./data/invoiceninja-storage:/var/www/app/storage:rw
- ./data/invoiceninja-logo:/var/www/app/public/logo:rw
web:
image: nginx:1
restart: unless-stopped
networks:
- net
ports:
- 8000:80
links:
- app
volumes_from:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
cron:
image: invoiceninja/invoiceninja
#restart: unless-stopped
networks:
- net
links:
- db:mysql
volumes_from:
- app
env_file: .env
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 1d
done
EOF'
networks:
net: