Files
symfony-flex-recipes/doctrine.mongodb-odm-bundle.5.0.json
github-action[bot]andgithub-action[bot] 699182bdac Update Flex endpoint
2026-01-16 12:26:50 +00:00

102 lines
4.7 KiB
JSON

{
"manifests": {
"doctrine/mongodb-odm-bundle": {
"manifest": {
"bundles": {
"Doctrine\\Bundle\\MongoDBBundle\\DoctrineMongoDBBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
},
"env": {
"#1": "Format described at https://www.mongodb.com/docs/php-library/current/connect/connection-options/",
"#2": "MONGODB_URI=\"mongodb://username:password@localhost:27017/?authSource=auth-db\"",
"#3": "MONGODB_URI=\"mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority\"",
"MONGODB_URI": "mongodb://localhost:27017",
"MONGODB_DB": "symfony"
},
"dockerfile": [
"RUN install-php-extensions mongodb"
],
"docker-compose": {
"compose.yaml": {
"services": [
"mongodb:",
" # In production, you may want to use a managed database service",
" image: mongodb/mongodb-atlas-local:latest",
" environment:",
" - MONGODB_INITDB_DATABASE=${MONGODB_DB:-app}",
" # You should definitely set a root username and password in production",
" - MONGODB_INITDB_ROOT_USERNAME=${MONGODB_USERNAME:-}",
" - MONGODB_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD:-}",
" volumes:",
" - mongodb_data:/data/db: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/mongodb/data:/data/db:rw"
],
"volumes": [
"mongodb_data:"
]
},
"compose.override.yaml": {
"services": [
"mongodb:",
" ports:",
" - \"27017\""
]
}
}
},
"files": {
"config/packages/doctrine_mongodb.yaml": {
"contents": [
"doctrine_mongodb:",
" auto_generate_proxy_classes: true",
" auto_generate_hydrator_classes: true",
" connections:",
" default:",
" server: '%env(MONGODB_URI)%'",
" options: {}",
" default_database: '%env(MONGODB_DB)%'",
" document_managers:",
" default:",
" auto_mapping: true",
" mappings:",
" App:",
" dir: '%kernel.project_dir%/src/Document'",
" prefix: 'App\\Document'",
"",
"when@prod:",
" doctrine_mongodb:",
" auto_generate_proxy_classes: false",
" auto_generate_hydrator_classes: false",
" document_managers:",
" default:",
" metadata_cache_driver:",
" type: service",
" id: doctrine_mongodb.system_cache_pool",
"",
" framework:",
" cache:",
" pools:",
" doctrine_mongodb.system_cache_pool:",
" adapter: cache.system",
""
],
"executable": false
},
"src/Document/.gitignore": {
"contents": [
""
],
"executable": false
}
},
"ref": "2bbccc6ecb92903494e4c6291255014a32c59fad"
}
}
}