Sign inSign up

skoep/memcached

By skoep

•Updated 2 months ago

A Memcached Server on current Debian with very simple and secure configuration.

Image
Databases & storage
0

103

skoep/memcached repository overview

⁠Welcome to Debian / Memcached

This image allows for quick and easy use of the Memcached. The configuration options are simple, but can be replaced with your own configuration at any time.

⁠Versioning (Tag)

Versioning is highly dependent on the current Debian version and the Memcached version available for it.

MajorMinorPatchDebianMemcachedAdditional Information
110Trixie (13.6)1.6.38(nothing)

⁠Configuration

At each startup, the configuration is rewritten using any existing environment variables. Unset environment variables are assigned default values, which can be found in the table below. However, if the file /etc/memcached/memcached-custom.conf is available via volumes in the configuration directory, Memcached will start with this configuration file, which will not be modified.

⁠Environment

VariableDefaultDescription
MEMORY_LIMIT64item memory in megabytes (memory-limit)
CONN_LIMIT1024max simultaneous connections (conn-limit)
ITEMSIZE_LIMIT1madjusts max item size (max-item-size)
NUM_THREADS4number of threads to use (threads)

⁠Volumes

Image files / DirectoriesUsing for
/etc/memcached/memcached-custom.confown custom configuration

⁠Example of a Compose file:

Starting the server with 128mb Memory:

services:
  memcached:
    image: docker.io/skoep/memcached:latest
    container_name: memcached
    hostname: memcached
    domainname: example.com
    restart: unless-stopped
    ports:
      - "11211:11211"
    volumes:
      - /etc/localtime:/etc/localtime:ro
    environment:
      - MEMORY_LIMIT=128

Starting the server with your own configuration file:

services:
  memcached:
    image: docker.io/skoep/memcached:latest
    container_name: memcached
    hostname: memcached
    domainname: example.com
    restart: unless-stopped
    ports:
      - "11211:11211"
    volumes:
      - [your host configuration directory]/memcached-custom.conf:/etc/memcached/memcached-custom.conf:ro
      - /etc/localtime:/etc/localtime:ro

⁠Example run for Podman

Create and Start with default settings:

podman run \
    --detach \
    --name memcached \
    --hostname memcached \
    --tz "Europe/Berlin" \
    -p 11211:11211 \
    --restart always \
    docker.io/skoep/memcached:latest

Tag summary

Content type

Image

Digest

sha256:2d847d2a4…

Size

82.2 MB

Last updated

2 months ago

docker pull skoep/memcached