https://github.com/dlueth/qoopido.docker.memcached
https://github.com/dlueth/qoopido.docker.memcached
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dlueth/qoopido.docker.memcached
- Owner: dlueth
- Created: 2015-06-10T21:18:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T19:45:30.000Z (over 9 years ago)
- Last Synced: 2025-01-25T08:08:23.091Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# recommended directory structure #
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
```
# Example docker-compose.yaml #
```
memcached:
image: qoopido/memcached:latest
ports:
- "11211:11211"
volumes:
- ./data/memcached:/app/data
```
# Or start container manually #
```
docker run -d -P -t -i -p 11211:11211 \
-v [local path to data]:/app/data \
--name memcached qoopido/memcached:latest
```
# Configuration #
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```.