mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
18 lines
675 B
YAML
18 lines
675 B
YAML
mongo_db_bundle:
|
|
data_collection: '%kernel.debug%'
|
|
clients:
|
|
default:
|
|
hosts:
|
|
- { host: '%env(MONGODB_HOST)%', port: '%env(int: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)%'
|