-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
89 lines (82 loc) · 2.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '2.2'
services:
# The application
app:
image: ghcr.io/biigle/app
user: ${USER_ID}:${GROUP_ID}
depends_on:
- database
build:
dockerfile: .docker/app.dockerfile
context: ./
working_dir: /var/www
volumes:
- ./:/var/www
environment:
- "DB_PORT=5432"
worker:
image: ghcr.io/biigle/worker
user: ${USER_ID}:${GROUP_ID}
depends_on:
- app
- database_testing
build:
context: ./
dockerfile: .docker/worker.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
tmpfs:
- /tmp
- /var/www/storage/framework/testing/disks:uid=${USER_ID},gid=${GROUP_ID}
environment:
- "DB_PORT=5432"
init: true
command: "php -d memory_limit=1G artisan queue:work --queue=high,default --sleep=5 --tries=3 --timeout=0"
websockets:
image: quay.io/soketi/soketi:1.4-16-alpine
environment:
- SOKETI_DEFAULT_APP_ID=${SOKETI_DEFAULT_APP_ID}
- SOKETI_DEFAULT_APP_KEY=${SOKETI_DEFAULT_APP_KEY}
- SOKETI_DEFAULT_APP_SECRET=${SOKETI_DEFAULT_APP_SECRET}
- SOKETI_DEFAULT_APP_USER_AUTHENTICATION=1
- SOKETI_SHUTDOWN_GRACE_PERIOD=3000
- SOKETI_METRICS_ENABLED=0
# - SOKETI_DEBUG=1
# The web server
web:
image: ghcr.io/biigle/web
depends_on:
- app
- websockets
build:
context: ./
dockerfile: .docker/web.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
ports:
- 8000:80
command: nginx -g 'daemon off;' -c /etc/nginx/nginx-no-ssl.conf
# The database
database:
image: ghcr.io/biigle/pgvector
volumes:
- dbdata:/var/lib/postgresql/data
- ./:/data
environment:
- "POSTGRES_DB=biigle"
- "POSTGRES_USER=biigle"
- "POSTGRES_PASSWORD=secret"
ports:
- "54320:5432"
database_testing:
image: ghcr.io/biigle/pgvector
tmpfs:
- /var/lib/postgresql/data
environment:
- "POSTGRES_DB=biigle"
- "POSTGRES_USER=biigle"
- "POSTGRES_PASSWORD=secret"
volumes:
dbdata: