-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (55 loc) · 1 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
version: '3.8'
services:
# frontend:
# image: antoniopapa1991/admin-frontend
# depends_on:
# - backend
# networks:
# - app
backend:
container_name: admin_api
build:
context: .
dockerfile: Dockerfile
environment:
DB_HOST: admin_db
DB_DATABASE: admin
DB_USERNAME: root
DB_PASSWORD: root
command: 'php artisan serve --host=0.0.0.0'
ports:
- 8000:8000
volumes:
- .:/app
depends_on:
- mysql
- redis
networks:
- app
queue:
build:
context: .
dockerfile: Dockerfile
command: 'php artisan queue:work'
depends_on:
- redis
redis:
image: redis:6.2.5
ports:
- 6379:6379
networks:
- app
mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: admin
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
volumes:
- .storage/dbdata:/var/lib/mysql
ports:
- ${MYSQL_PORT}:3306
networks:
- app
networks:
app: