Skip to content

DannyBen/docker-jobly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jobly Docker Image

Version

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

About

Jobly Job Server Docker Image

Resources

Stars

Watchers

Forks

Packages

No packages published