Running in Docker

A docker image of Jylis is available on Docker Hub at jemc/jylis.

Start by pulling the latest image:

docker pull jemc/jylis

Now start a Jylis container:

docker run -p 6379:6379 jemc/jylis

The container is now ready to accept connections on port 6379. Pressing Ctrl + C will shut down the container. Adding the -d flag before the image name will start the container in the background.

docker-compose

This section demonstrates a minimal docker-compose file that will start Jylis and use a Redis CLI to connect to the database. Create a new directory and copy the following code to docker-compose.yml:

version: "3"
services:
  db:
    image: jemc/jylis
    ports:
      - 6379:6379

  cli:
    image: redis:alpine
    restart: "no"
    command: redis-cli -h db
    links:
      - db

Start Jylis in the background:

docker-compose up -d

Run the Redis CLI:

docker-compose run cli

Jylis is exposed to the system on port 6379 if you would like to connect additional applications to the database.


Improve this page