Sign inSign up

gomomento/momento-proxy

By gomomento

•Updated 4 months ago

Official proxy for momento cache

Image
0

2.3K

gomomento/momento-proxy repository overview

⁠momento-proxy Docker image

You can run the momento-proxy container by pulling it from Momento's⁠ docker hub registry⁠ with following commands.

docker pull gomomento/momento-proxy
docker run -d -p 11211:11211 -p 9999:9999 -e MOMENTO_API_KEY=<YOUR_MOMENTO_API_KEY> gomomento/momento-proxy

By default, this configuration⁠ is used for the Momento proxy. To set your own, please provide an env variable CONFIG as well as the directory where your config file is located to -v when running a container.

docker run -d -p 11211:11211 -p 9999:9999 -e MOMENTO_API_KEY=<YOUR_MOMENTO_API_KEY> -e CONFIG=<YOUR_CONFIG_FILE> -v /your/path/to/config/dir:/app/config gomomento/momento-proxy
⁠momento-proxy Docker image local development
  • Building a new momento-proxy image:
docker build --tag momento-proxy .
  • Running the newly built image with the default config:
docker run -d -p 11211:11211 -p 9999:9999 -e MOMENTO_API_KEY=<YOUR_MOMENTO_API_KEY> momento-proxy
  • Running the newly built image with your custom config:
docker run -d -p 11211:11211 -p 9999:9999 -e MOMENTO_API_KEY=<YOUR_MOMENTO_API_KEY> -e CONFIG=<YOUR_CONFIG_FILE> -v /your/path/to/config/dir:/app/config momento-proxy
  • Testing to see if a container with the momento-proxy is running properly with telnet:
telnet 0.0.0.0 11211
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'
set foo 0 0  3
bar
STORED

Tag summary

Content type

Image

Digest

sha256:874a1e752…

Size

50 MB

Last updated

4 months ago

docker pull gomomento/momento-proxy