-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.17 KB
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
x-app-config: &app-config
image: ghcr.io/aaronpk/meetable:latest
restart: unless-stopped
env_file:
- .env
environment:
# Overriding these to force the app to use the docker compose services instead of what might be defined in .env
- DB_HOST=db
- REDIS_HOST=redis
- CACHE_DRIVER=redis
- QUEUE_CONNECTION=redis
- SESSION_DRIVER=redis
services:
app:
<<: *app-config
ports:
- "8080:80"
depends_on:
- db
- redis
volumes:
- meetable_storage:/var/www/html/storage/app
worker:
<<: *app-config
command: ["php", "artisan", "queue:work"]
depends_on:
- db
- redis
volumes:
- meetable_storage:/var/www/html/storage/app
db:
image: mariadb:10.11
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE:-laravel}
MYSQL_USER: ${DB_USERNAME:-meetable}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root}
volumes:
- meetable_db:/var/lib/mysql
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- meetable_redis:/data
volumes:
meetable_storage:
meetable_db:
meetable_redis: