|
| 1 | +{ |
| 2 | + "bundles": { |
| 3 | + "Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"] |
| 4 | + }, |
| 5 | + "copy-from-recipe": { |
| 6 | + "config/": "%CONFIG_DIR%/", |
| 7 | + "src/": "%SRC_DIR%/" |
| 8 | + }, |
| 9 | + "env": { |
| 10 | + "#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url", |
| 11 | + "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", |
| 12 | + "#3": "", |
| 13 | + "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", |
| 14 | + "#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4\"", |
| 15 | + "DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=14&charset=utf8" |
| 16 | + }, |
| 17 | + "dockerfile": [ |
| 18 | + "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\", |
| 19 | + "\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\", |
| 20 | + "\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\", |
| 21 | + "\tapk del .pgsql-deps" |
| 22 | + ], |
| 23 | + "docker-compose": { |
| 24 | + "docker-compose.yml": { |
| 25 | + "services": [ |
| 26 | + "database:", |
| 27 | + " image: postgres:${POSTGRES_VERSION:-14}-alpine", |
| 28 | + " environment:", |
| 29 | + " POSTGRES_DB: ${POSTGRES_DB:-app}", |
| 30 | + " # You should definitely change the password in production", |
| 31 | + " POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}", |
| 32 | + " POSTGRES_USER: ${POSTGRES_USER:-app}", |
| 33 | + " volumes:", |
| 34 | + " - db-data:/var/lib/postgresql/data:rw", |
| 35 | + " # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!", |
| 36 | + " # - ./docker/db/data:/var/lib/postgresql/data:rw" |
| 37 | + ], |
| 38 | + "volumes": ["db-data:"] |
| 39 | + }, |
| 40 | + "docker-compose.override.yml": { |
| 41 | + "services": [ |
| 42 | + "database:", |
| 43 | + " ports:", |
| 44 | + " - \"5432\"" |
| 45 | + ] |
| 46 | + } |
| 47 | + }, |
| 48 | + "conflict": { |
| 49 | + "doctrine/orm": "<2.14", |
| 50 | + "symfony/dependency-injection": "<6.2", |
| 51 | + "symfony/framework-bundle": "<5.3" |
| 52 | + } |
| 53 | +} |
0 commit comments