mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Create basic recipe for the MongoDB Bundle
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
mongo_db_bundle:
|
||||
data_collection: '%kernel.debug%'
|
||||
clients:
|
||||
default:
|
||||
hosts:
|
||||
- { host: '%env(MONGODB_HOST)%', port: '%env(MONGODB_PORT)%' }
|
||||
username: '%env(MONGODB_USER)%'
|
||||
password: '%env(MONGODB_PASSWORD)%'
|
||||
replicaSet: '' # default null (no replica)
|
||||
ssl: false
|
||||
connectTimeoutMS: 3000
|
||||
readPreference: primaryPreferred # see https://docs.mongodb.com/manual/reference/read-preference/#primary for info
|
||||
|
||||
connections:
|
||||
default:
|
||||
client_name: default
|
||||
database_name: '%env(MONGODB_DB)%'
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Facile\\MongoDbBundle\\FacileMongoDbBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
},
|
||||
"env": {
|
||||
"MONGODB_HOST": "localhost",
|
||||
"MONGODB_PORT": "27017",
|
||||
"MONGODB_USER": null,
|
||||
"MONGODB_PASSWORD": null,
|
||||
"MONGODB_DB": "symfony"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user