Skip to content
Jobly Job Server Docker Image
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/jobs
Dockerfile
README.md
docker-compose.yml

README.md

Jobly Docker Image

This is the official docker image for Jobly.

Usage

Mount your app folder into the /app folder in the container.

This folder should contain a jobs subfolder, and possibly your configuration files and other dependencies.

With Docker Compose

You can use this docker-compose configuration:

$ docker-compose build
$ docker-compose up web worker
$ docker-compose run jobly Ping

Without Docker Compose

# Network
$ docker network create jobly

# Redis
$ docker run --rm \
  --name redis \
  --network jobly \
  redis

# Worker
$ docker run --rm \
  --network jobly \
  -v $PWD/app:/app \
  -e JOBLY_REDIS_URL=redis://redis:6379/0 \
  dannyben/jobly worker

# Server
$ docker run --rm \
  --name web \
  --network jobly \
  -p 3000:3000 \
  -v $PWD/app:/app \
  -e JOBLY_REDIS_URL=redis://redis:6379/0 \
  dannyben/jobly server

# Command
$ docker run --rm \
  --network jobly \
  -v $PWD/app:/app \
  -e JOBLY_REDIS_URL=redis://redis:6379/0 \
  -e JOBLY_API_URL=http://web:3000/do \
  dannyben/jobly send Ping
You can’t perform that action at this time.