File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
doctrine/doctrine-bundle/1.6 Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
"#1" : " Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url" ,
11
11
"#2" : " For a sqlite database, use: \" sqlite:///%kernel.project_dir%/var/data.db\" " ,
12
12
"#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: {}" ]
14
32
}
15
33
}
You can’t perform that action at this time.
0 commit comments