Skip to content

Commit

Permalink
Make Meilisearch Analystics enviroment variable available (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mawnicat committed Aug 25, 2023
1 parent bf90675 commit fc45bdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ protected function replaceEnvVariables(array $services)
if (in_array('meilisearch', $services)) {
$environment .= "\nSCOUT_DRIVER=meilisearch";
$environment .= "\nMEILISEARCH_HOST=http://meilisearch:7700\n";
$environment .= "\nMEILISEARCH_NO_ANALYTICS=false\n";
}

if (in_array('soketi', $services)) {
Expand Down
2 changes: 2 additions & 0 deletions stubs/meilisearch.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ meilisearch:
image: 'getmeili/meilisearch:latest'
ports:
- '${FORWARD_MEILISEARCH_PORT:-7700}:7700'
environment:
MEILI_NO_ANALYTICS: '${MEILISEARCH_NO_ANALYTICS:-false}'
volumes:
- 'sail-meilisearch:/meili_data'
networks:
Expand Down

0 comments on commit fc45bdd

Please sign in to comment.