mirror of
https://github.com/symfony/recipes.git
synced 2026-09-14 08:36:27 +03:00
55 lines
2.4 KiB
JSON
55 lines
2.4 KiB
JSON
{
|
|
"bundles": {
|
|
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/",
|
|
"src/": "%SRC_DIR%/"
|
|
},
|
|
"env": {
|
|
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
|
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
|
"#3": "",
|
|
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db\"",
|
|
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4\"",
|
|
"#6": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4\"",
|
|
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
|
},
|
|
"dockerfile": [
|
|
"RUN install-php-extensions pdo_pgsql"
|
|
],
|
|
"docker-compose": {
|
|
"docker-compose.yml": {
|
|
"services": [
|
|
"database:",
|
|
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
|
" environment:",
|
|
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
|
" # You should definitely change the password in production",
|
|
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
|
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
|
" healthcheck:",
|
|
" test: [\"CMD\", \"pg_isready\", \"-d\", \"${POSTGRES_DB:-app}\", \"-U\", \"${POSTGRES_USER:-app}\"]",
|
|
" timeout: 5s",
|
|
" retries: 5",
|
|
" start_period: 60s",
|
|
" volumes:",
|
|
" - database_data:/var/lib/postgresql/data:rw",
|
|
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
|
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
|
],
|
|
"volumes": ["database_data:"]
|
|
},
|
|
"docker-compose.override.yml": {
|
|
"services": [
|
|
"database:",
|
|
" ports:",
|
|
" - \"5432\""
|
|
]
|
|
}
|
|
},
|
|
"conflict": {
|
|
"symfony/framework-bundle": "<7.1"
|
|
}
|
|
}
|