Extremely lightweight beanstalkd docker image (Under 3MB)
285
Beanstalk is a simple, fast work queue. Its interface is generic but was originally designed for reducing the latency of page views in high-volume web applications by running time-consuming tasks asynchronously.
docker run --rm -d --name beanstalkd -p 11300:11300 askarlabs/beanstalkd
This will start the beanstalk server on the host's machine's port number 11300. Please note the data will be wiped as soon as you stop the container.
If you want to preserve the data after the container is deleted then create any folder anywhere inside your host and point it to the container's /var/lib/beanstalkd folder.
For the sake of simplicity, we are using the current folder as our beanstalk's data directory.
docker run --rm -d --name beanstalkd -v "$(pwd):/var/lib/beanstalkd" -p 11300:11300 askarlabs/beanstalkd
Below is the example docker-compose file which you can copy paste or extend as per your choice.
version: '3.5'
services:
beanstalkd:
container_name: beanstalkd
image: askarlabs/beanstalkd
ports:
- "11300:11300"
volumes:
- "./.docker/beanstalkd:/var/lib/beanstalkd"
restart: always
networks:
default:
external:
name: development
Content type
Image
Digest
sha256:9ced3c617…
Size
2.7 MB
Last updated
about 4 years ago
docker pull askarlabs/beanstalkd