Skip to content

redisson/redisson-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redisson-docker

Docker container for Redisson Node

Supported tags and respective Dockerfile links

What is Redisson?

Redisson is Redis Java client and In-Memory Data Grid. It provides Distributed objects, Distributed collections, Distributed locks and synchronizers, Distributed services, Spring Framework integration, Spring Cache implementation, Spring Transaction API implementation, Spring Data Redis integration, Spring Boot Starter implementation, Transaction API, Tomcat Session Manager implementation, Spring Session implementation

Image Variants

Redisson Node container has two variants:

redisson-node:<version>

Default image. Based on OpenJDK 1.8 image

redisson-node:<version>-ubuntu

Based on Ubuntu 18.04 image with OpenJDK package.

1. How to run OpenJDK based container

1. Run with Redis

Run Redis

docker run -d --name redis-node redis

Run Redisson Node

docker run -d --network container:redis-node -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5

with JAVA_OPTS parameters

docker run -d --network container:redis-node -e JAVA_OPTS="-Xmx1g" -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5

<path-to-config> - path to Redisson Node config

2. Run with external Redis

Run Redisson Node

docker run -d -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5

with JAVA_OPTS parameters

docker run -d -e JAVA_OPTS="-Xmx1g" -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5

<path-to-config> - path to Redisson Node config

2. How to run Ubuntu based container

1. Run with Redis

Run Redis

docker run -d --name redis-node redis

Run Redisson Node

docker run -d --network container:redis-node -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5-ubuntu

with JAVA_OPTS parameters

docker run -d --network container:redis-node -e JAVA_OPTS="-Xmx1g" -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5-ubuntu

<path-to-config> - path to Redisson Node config

2. Run with external Redis

Run Redisson Node

docker run -d -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5-ubuntu

with JAVA_OPTS parameters

docker run -d -e JAVA_OPTS="-Xmx1g" -v <path-to-config>:/opt/redisson-node/redisson.conf redisson/redisson-node:3.15.5-ubuntu

<path-to-config> - path to Redisson Node config