This guide uses Docker to run the Gearman job server.
For Docker installation, see Docker.
Create a directory to store your configuration and compose files.
mkdir -p /opt/gearman
cd /opt/gearman
Define a container for Gearman using a community-maintained image.
Note: There is no official Docker image for Gearman. This guide uses openitcockpit/gearmand, a community-maintained image.
services:
gearmand:
image: openitcockpit/gearmand:latest
container_name: gearmand
ports:
- "4730:4730" # Gearman default port
restart: unless-stopped
Start the container in the background.
docker compose up -d
Check that Gearman is running:
docker compose ps
Test connectivity:
echo "version" | nc localhost 4730
openitcockpit/gearmand and artefactual-labs/docker-gearmand are popular community alternativesAny questions?
Feel free to contact us. Find all contact information on our contact page.