Self-host Memcached with Levelrail
VerifiedA fast in-memory cache for query results, sessions and rendered pages, reachable by other apps on host memcached.
- Authormemcached
- LicenceBSD-3-Clause
- Memory128 MiB
- Archarm64
- Services1
How to self-host Memcached
-
Pull the images
One image is pulled on your server.
Show images
memcached:1.6-alpine
-
Create the app
One service starts in a single Compose app, on port 11211.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Memcached requirements
- Memory
- About 128 MiB
- Architectures
- amd64 image published, arm64 tested
- Ports
- 11211
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- BSD-3-Clause, permissive license
- Verified. Verified on arm64 with image tag 1.6-alpine. Our CI ran this exact image version and it answered on its health path. Evidence
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Memcached. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Memcached docs page.
Deploy Memcached your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Memcached from the CLI
levelrail-cli templates deploy memcached --name my-memcached Deploy Memcached with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/memcached/deploy Memcached configuration
Memcached services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| memcached | memcached:1.6-alpine | 11211 | none |
Memcached environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 11211
- Volumes
- none
Memcached FAQ
How much memory does Memcached need?
The catalog lists about 128 MiB of memory for Memcached.
Does Memcached run on arm64?
For Memcached, arm64 is tested; amd64 is image published.
What licence is Memcached under?
Memcached is licensed under BSD-3-Clause, which is permissive, with few conditions on reuse.
Does Memcached need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Memcached use?
Memcached listens on port 11211 inside the stack.
Can I deploy Memcached on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Memcached, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image memcached:1.6-alpine is what you deploy there.