Files
symfony-flex-recipes-contrib/doctrine.mongodb-odm-bundle.5.0.json
T
github-action[bot]andgithub-action[bot] 376230d2b0 Update Flex endpoint
2025-08-26 16:44:22 +00:00

106 lines
4.9 KiB
JSON

{
"manifests": {
"doctrine/mongodb-odm-bundle": {
"manifest": {
"bundles": {
"Doctrine\\Bundle\\MongoDBBundle\\DoctrineMongoDBBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
},
"container": {
"env(MONGODB_URI)": "",
"env(MONGODB_DB)": ""
},
"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(resolve:MONGODB_URI)%'",
" options: {}",
" default_database: '%env(resolve: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": "e84b128ea886f70a430eb88de7ac8217611542cc"
}
}
}