From 56ddb0555b169f8013562a2ccdffbab769d24ee5 Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Fri, 26 May 2023 10:05:46 +0200 Subject: [PATCH] add sonic back to compose --- docker-compose.yml | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9f503c4903..bf4e4fb8da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,21 +40,33 @@ services: volumes: - ./db:/var/lib/postgresql/data - meilisearch: - container_name: meilisearch - image: getmeili/meilisearch:v1.1.1 - environment: - - MEILI_ENV=${MEILI_ENV:-development} - ports: - - "7700:7700" - networks: - - calcnet - volumes: - - ./meili_data:/meili_data - restart: unless-stopped +### Only one of the below should be used. +### Meilisearch is better overall, but resource-intensive. Sonic is a very light full text search engine. + +# meilisearch: +# container_name: meilisearch +# image: getmeili/meilisearch:v1.1.1 +# environment: +# - MEILI_ENV=${MEILI_ENV:-development} +# ports: +# - "7700:7700" +# networks: +# - calcnet +# volumes: +# - ./meili_data:/meili_data +# restart: unless-stopped + +# sonic: +# restart: unless-stopped +# image: docker.io/valeriansaliou/sonic:v1.4.0 +# networks: +# - calcnet +# volumes: +# - ./sonic:/var/lib/sonic/store +# - ./sonic/config.cfg:/etc/sonic.cfg networks: calcnet: - # web: - # external: - # name: web + # web: + # external: + # name: web