armon / bloomd

C network daemon for bloom filters
http://armon.github.io/bloomd
Other
1.24k stars 112 forks source link

Add Docker support #55

Closed PuKoren closed 1 year ago

PuKoren commented 5 years ago

Dockerfile used to create a container for bloomd (running on Alpine)

Some configuration options can be set using env variables:

Name Default value Description
BLOOMD_PORT 8673 Port used to listen to incoming connections
BLOOMD_LOG_LEVEL INFO Log level
BLOOMD_DATA_DIR /data Folder used to store bloomd databases
BLOOMD_FLUSH_INTERVAL 300 Flush interval to write changes to disk
BLOOMD_WORKERS 2 Number of workers

Build:

docker build -t armon/bloomd:latest .

On this PR, you will encounter this error when building: https://github.com/armon/bloomd/issues/54

Run:

docker run -it --rm -p 8673:8673 armon/bloomd:latest

With shared folder:

docker run -it --rm -p 8673:8673 -v `pwd`/datafolder:/data armon/bloomd:latest

Image size: 5.71MB

armon commented 1 year ago

Thanks @PuKoren !