Create basic recipe for the MongoDB Bundle

This commit is contained in:
Alessandro Lai
2018-01-19 22:32:52 +01:00
parent 392c230f17
commit fd32f7d26a
2 changed files with 32 additions and 0 deletions
@@ -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"
}
}