diff --git a/README.md b/README.md index a3bed82..7448931 100644 --- a/README.md +++ b/README.md @@ -393,6 +393,7 @@ A collection of delicious docker recipes. - [x] sentry - [x] atmoz/sftp - [x] snipe/snipe-it +- [x] valeriansaliou/sonic - [x] scrapinghub/splash - [x] deezer/spleeter - [x] teamatldocker diff --git a/sonic/data/etc/config.cfg b/sonic/data/etc/config.cfg new file mode 100644 index 0000000..a7ec7b2 --- /dev/null +++ b/sonic/data/etc/config.cfg @@ -0,0 +1,66 @@ +# Sonic +# Fast, lightweight and schema-less search backend +# Configuration file +# Example: https://github.com/valeriansaliou/sonic/blob/master/config.cfg + + +[server] + +log_level = "debug" + + +[channel] + +inet = "0.0.0.0:1491" +tcp_timeout = 300 + +auth_password = "password" + +[channel.search] + +query_limit_default = 10 +query_limit_maximum = 100 +query_alternates_try = 4 + +suggest_limit_default = 5 +suggest_limit_maximum = 20 + + +[store] + +[store.kv] + +path = "/var/lib/sonic/store/kv/" + +retain_word_objects = 1000 + +[store.kv.pool] + +inactive_after = 1800 + +[store.kv.database] + +flush_after = 900 + +compress = true +parallelism = 2 +max_files = 100 +max_compactions = 1 +max_flushes = 1 +write_buffer = 16384 +write_ahead_log = true + +[store.fst] + +path = "/var/lib/sonic/store/fst/" + +[store.fst.pool] + +inactive_after = 300 + +[store.fst.graph] + +consolidate_after = 180 + +max_size = 2048 +max_words = 250000 diff --git a/sonic/data/var/.gitkeep b/sonic/data/var/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/sonic/docker-compose.yml b/sonic/docker-compose.yml new file mode 100644 index 0000000..157ce6e --- /dev/null +++ b/sonic/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" +services: + sonic: + image: valeriansaliou/sonic:v1.3.0 + command: ["sonic", "-c", "/etc/sonic/config.cfg"] + ports: + - "1491:1491" + volumes: + - ./data/etc:/etc/sonic + - ./data/var:/var/lib/sonic/store + restart: unless-stopped