forked from biigle/biigle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
70 lines (62 loc) · 1.48 KB
/
docker-compose.yaml
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
62
63
64
65
66
67
68
69
70
version: '2.3'
services:
app:
image: biigle/app-dist
user: ${USER_ID}:${GROUP_ID}
restart: always
depends_on:
- cache
tmpfs:
- /var/www/storage/framework/views:uid=${USER_ID},gid=${GROUP_ID}
volumes:
- ./storage:/var/www/storage
web:
image: biigle/web-dist
restart: always
depends_on:
- app
volumes:
- type: bind
source: ./certificate
target: /etc/letsencrypt/live/example.com
read_only: true
- type: bind
source: ./storage
target: /var/www/storage
read_only: true
ports:
- 80:80
- 443:443
worker:
image: biigle/worker-dist
user: ${USER_ID}:${GROUP_ID}
restart: always
depends_on:
- cache
volumes_from:
- app
init: true
command: "php -d memory_limit=1G artisan queue:work --queue=high,default --sleep=5 --tries=3 --timeout=0"
scheduler:
image: biigle/worker-dist
user: ${USER_ID}:${GROUP_ID}
restart: always
depends_on:
- cache
volumes_from:
- app
command: "/bin/sh -c 'trap exit TERM; while sleep 60 & wait; do php -d memory_limit=1G artisan schedule:run >> /dev/null 2>&1; done'"
database:
image: postgres:10-alpine
restart: always
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- "POSTGRES_DB=biigle"
- "POSTGRES_USER=biigle"
- "POSTGRES_PASSWORD=secret"
cache:
image: redis:3.0-alpine
restart: always
volumes:
dbdata: