Skip to content

Commit b972369

Browse files
committed
[doctrine-bundle] Docker support
1 parent f3bb201 commit b972369

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

doctrine/doctrine-bundle/1.6/manifest.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@
1010
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
1111
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
1212
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
13-
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
13+
"DATABASE_URL": "\"mysql://symfony:password@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
14+
},
15+
"dockerfile": ["RUN docker-php-ext-install pdo_mysql"],
16+
"docker-compose": {
17+
"services": [
18+
" db:",
19+
" image: mariadb:10.3",
20+
" environment:",
21+
" - MYSQL_DATABASE=symfony",
22+
" # You should definitely change the password in production",
23+
" - MYSQL_PASSWORD=password",
24+
" - MYSQL_RANDOM_ROOT_PASSWORD=true",
25+
" - MYSQL_USER=symfony",
26+
" volumes:",
27+
" - db-data:/var/lib/mysql:rw",
28+
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
29+
" # - ./docker/db/data:/var/lib/mysql:rw"
30+
],
31+
"volumes": [" db-data: {}"]
1432
}
1533
}

0 commit comments

Comments
 (0)