-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 900 Bytes
/
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
version: '3.7'
services:
mysql:
image: mysql:8.0
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=url
- MYSQL_DATABASE=url
- MYSQL_USER=url
- MYSQL_PASSWORD=secret
redis:
image: redis:3.2-alpine
command: --appendonly yes
volumes:
- redis-data:/data
app:
build:
context: .
target: web
image: url-shortener-app:lumen-6.0
volumes:
- .:/var/www/html
ports:
- "80:80"
depends_on:
- mysql
- redis
queue:
build:
context: .
target: queue
image: url-shortener-queue:lumen-6.0
command: php artisan queue:work --verbose --tries=3 --timeout=90
volumes:
- .:/var/src/app
depends_on:
- mysql
- redis
volumes:
mysql-data:
driver: local
redis-data:
driver: local