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
docker build --tag momento-proxy .
docker run -d -p 11211:11211 -p 9999:9999 -e MOMENTO_API_KEY=<YOUR_MOMENTO_API_KEY> momento-proxy
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
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
Content type
Image
Digest
sha256:874a1e752…
Size
50 MB
Last updated
4 months ago
docker pull gomomento/momento-proxy