diff --git a/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml b/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml index 23b3a500..54f7abd3 100644 --- a/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml +++ b/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml @@ -1,6 +1,6 @@ # Read the documentation: https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Resources/doc/setup.md fos_elastica: clients: - default: { host: localhost, port: 9200 } + default: { url: '%env(ELASTICSEARCH_URL)%' } indexes: app: null diff --git a/friendsofsymfony/elastica-bundle/5.0/manifest.json b/friendsofsymfony/elastica-bundle/5.0/manifest.json index 80328c99..43db785d 100644 --- a/friendsofsymfony/elastica-bundle/5.0/manifest.json +++ b/friendsofsymfony/elastica-bundle/5.0/manifest.json @@ -4,5 +4,8 @@ }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" + }, + "env": { + "ELASTICSEARCH_URL": "http://localhost:9200/" } }