-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
executable file
·64 lines (62 loc) · 1.32 KB
/
docker-compose.dev.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
services:
# MySQL Database
mysql:
image: mysql:8
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: db_payroll_project
logging:
driver: json-file
options:
max-size: 10m
max-file: '3'
volumes:
- mysql_data:/var/lib/mysql
networks:
- net
restart: always
app:
build:
context: .
dockerfile: Dockerfile
container_name: local
volumes:
- php:/var/www/html/
ports:
- "8081:80"
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html
- BROADCAST_DRIVER=log
- CACHE_DRIVER=file
- SESSION_DRIVER=file
- QUEUE_DRIVER=sync
- DB_CONNECTION=mysql
- DB_PORT=3306
- DB_DATABASE=db_payroll_project
- DB_USERNAME=root
- DB_PASSWORD=password
- DB_HOST=mysql
- APP_ENV=local
- APP_KEY=base64:Eexn4B7t5UW+Z/F5/7w6F9s9Gsdqt54lgCc+sIMxUjE=
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- XDEBUG_MODE=debug,develop,coverage
- XDEBUG_CONFIG=client_host=localhost client_port=9003
logging:
driver: json-file
options:
max-size: 10m
max-file: '3'
depends_on:
- mysql
restart: always
networks:
- net
networks:
net:
volumes:
mysql_data:
php: