Skip to content

Commit d246d09

Browse files
dunglasfabpot
authored andcommitted
feat: improve MySQL
1 parent 8236313 commit d246d09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doctrine/doctrine-bundle/1.6/manifest.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
"docker-compose": {
1919
"services": [
2020
"db:",
21-
" image: mariadb:10.5.6",
21+
" image: mariadb:${MARIADB_VERSION:-10.5.6}",
2222
" environment:",
23-
" - MYSQL_DATABASE=app",
23+
" MYSQL_DATABASE: ${MYSQL_DATABASE:-app}",
2424
" # 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}",
2828
" volumes:",
2929
" - db-data:/var/lib/mysql:rw",
3030
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
3131
" # - ./docker/db/data:/var/lib/mysql:rw",
32-
" # To expose the port publicly",
32+
" # To expose the port on the host",
3333
" # ports:",
34-
" # - \"3306\""
34+
" # - \"3306:3306\""
3535
],
36-
"volumes": ["db-data: {}"]
36+
"volumes": ["db-data:"]
3737
}
3838
}

0 commit comments

Comments
 (0)