-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1018 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
version: '2.3'
services:
db:
image: "mysql:5.7"
command: --disable-partition-engine-check
volumes:
- ./mysql/mounted/backups/:/adk/backups
- ./mysql/mounted/logs:/var/log/mysql
environment:
MYSQL_DATABASE: ftpreader
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
ports:
- "33006:3306"
web:
build:
context: .
dockerfile: Dockerfile
command: bash -c 'php artisan migrate; php artisan db:seed; php artisan serve --host 0.0.0.0'
volumes:
- .:/app
ports:
- "8001:8000"
depends_on:
db:
condition: service_healthy
links:
- db
- redis
queue:
build:
context: .
dockerfile: Dockerfile
command: bash -c 'php artisan queue:listen'
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
links:
- db
- redis
redis:
image: redis:4.0