File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
doctrine/doctrine-bundle/1.6 Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 18
18
"docker-compose" : {
19
19
"services" : [
20
20
" db:" ,
21
- " image: mariadb:10.5.6" ,
21
+ " image: mariadb:${MARIADB_VERSION:- 10.5.6} " ,
22
22
" environment:" ,
23
- " - MYSQL_DATABASE= app" ,
23
+ " MYSQL_DATABASE: ${ MYSQL_DATABASE:- app} " ,
24
24
" # You should definitely change the password in production" ,
25
- " - MYSQL_PASSWORD= ChangeMe" ,
26
- " - MYSQL_RANDOM_ROOT_PASSWORD= true" ,
27
- " - MYSQL_USER= symfony" ,
25
+ " MYSQL_PASSWORD: ${ MYSQL_PASSWORD:- ChangeMe} " ,
26
+ " MYSQL_RANDOM_ROOT_PASSWORD: \" true\" " ,
27
+ " MYSQL_USER: ${ MYSQL_USER:- symfony} " ,
28
28
" volumes:" ,
29
29
" - db-data:/var/lib/mysql:rw" ,
30
30
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!" ,
31
31
" # - ./docker/db/data:/var/lib/mysql:rw" ,
32
- " # To expose the port publicly " ,
32
+ " # To expose the port on the host " ,
33
33
" # ports:" ,
34
- " # - \" 3306\" "
34
+ " # - \" 3306:3306 \" "
35
35
],
36
- "volumes" : [" db-data: {} " ]
36
+ "volumes" : [" db-data:" ]
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments