A Memcached Server on current Debian with very simple and secure configuration.
103
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 is highly dependent on the current Debian version and the Memcached version available for it.
| Major | Minor | Patch | Debian | Memcached | Additional Information |
|---|---|---|---|---|---|
| 1 | 1 | 0 | Trixie (13.6) | 1.6.38 | (nothing) |
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.
| Variable | Default | Description |
|---|---|---|
| MEMORY_LIMIT | 64 | item memory in megabytes (memory-limit) |
| CONN_LIMIT | 1024 | max simultaneous connections (conn-limit) |
| ITEMSIZE_LIMIT | 1m | adjusts max item size (max-item-size) |
| NUM_THREADS | 4 | number of threads to use (threads) |
| Image files / Directories | Using for |
|---|---|
| /etc/memcached/memcached-custom.conf | own custom configuration |
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
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
Content type
Image
Digest
sha256:2d847d2a4…
Size
82.2 MB
Last updated
2 months ago
docker pull skoep/memcached