File tree Expand file tree Collapse file tree 2 files changed +4
-31
lines changed Expand file tree Collapse file tree 2 files changed +4
-31
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LOG_DEPRECATIONS_CHANNEL=null
9
9
LOG_LEVEL = debug
10
10
11
11
DB_CONNECTION = mysql
12
- DB_HOST = 127.0.0.1
12
+ DB_HOST = shared-mysql
13
13
DB_PORT = 3306
14
14
DB_DATABASE = laravel
15
15
DB_USERNAME = root
Original file line number Diff line number Diff line change @@ -21,37 +21,10 @@ services:
21
21
- ' .:/var/www/html'
22
22
networks :
23
23
- sail
24
- depends_on :
25
- - mysql
26
- restart : unless-stopped
27
- mysql :
28
- image : ' mysql/mysql-server:8.0'
29
- ports :
30
- - ' ${FORWARD_DB_PORT:-3306}:3306'
31
- environment :
32
- MYSQL_ROOT_PASSWORD : ' ${DB_PASSWORD}'
33
- MYSQL_ROOT_HOST : ' %'
34
- MYSQL_DATABASE : ' ${DB_DATABASE}'
35
- MYSQL_USER : ' ${DB_USERNAME}'
36
- MYSQL_PASSWORD : ' ${DB_PASSWORD}'
37
- MYSQL_ALLOW_EMPTY_PASSWORD : 1
38
- volumes :
39
- - ' sail-mysql:/var/lib/mysql'
40
- - ' ./vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh'
41
- networks :
42
- - sail
43
- healthcheck :
44
- test :
45
- - CMD
46
- - mysqladmin
47
- - ping
48
- - ' -p${DB_PASSWORD}'
49
- retries : 3
50
- timeout : 5s
24
+ - shared-laravel-network
51
25
restart : unless-stopped
52
26
networks :
53
27
sail :
54
28
driver : bridge
55
- volumes :
56
- sail-mysql :
57
- driver : local
29
+ shared-laravel-network :
30
+ external : true
You can’t perform that action at this time.
0 commit comments