Like with my other containers I encourage you to follow a unified directory structure approach to keep things simple & maintainable, e.g.:
project root
- docker-compose.yaml
- data
- memcached
- logs
memcached:
image: qoopido/memcached:latest
ports:
- "11211:11211"
volumes:
- ./data/memcached:/app/data
docker run -d -P -t -i -p 11211:11211 \
-v [local path to data]:/app/data \
--name memcached qoopido/memcached:latest
If you need a custom shell script to be run on start or stop (e.g. to set symlinks) you can do so by creating the file /app/config/up.sh or /app/config/down.sh.
Content type
Image
Digest
Size
191.5 MB
Last updated
almost 10 years ago
docker pull qoopido/memcached