Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker version run with Redis cache option #94

Closed
gamefundas opened this issue May 29, 2019 · 5 comments
Closed

Docker version run with Redis cache option #94

gamefundas opened this issue May 29, 2019 · 5 comments
Labels

Comments

@gamefundas
Copy link

Is there a way to tell the Docker version of Komiser use a Redis instance as cache. Didn't see any run parameters defined in the Docker image.

@mlabouardy
Copy link
Collaborator

@gamefundas docker image now support redis, I have updated the README on how to run Komiser docker version with Redis

@gamefundas
Copy link
Author

I see the PORT parameter exposed, but not for Redis. Tried the following by passing as argument and it didn't seem to make any difference.

docker run -d -p 3000:3000 -e AWS_ACCESS_KEY_ID="" -e AWS_SECRET_ACCESS_KEY="" -e AWS_DEFAULT_REGION="" --name komiser mlabouardy/komiser:2.2.0 komiser start --redis myhost:6379

@mlabouardy
Copy link
Collaborator

@gamefundas redis is not running inside komiser container, you need to deploy it as an external service and link it to the container:

docker run -d --name redis redis
docker run -d -p 3000:3000 -e AWS_ACCESS_KEY_ID="" -e AWS_SECRET_ACCESS_KEY="" -e AWS_DEFAULT_REGION="" --link redis:redis --name komiser mlabouardy/komiser:2.2.0 komiser start --redis localhost:6378

@gamefundas
Copy link
Author

I have to run the container with host networking due to some security restrictions accessing amazon api and hence its unable for me to link containers. I was wondering if there is a way to point to a Redis elasticache instance via configuration.

@gamefundas
Copy link
Author

@mlabouardy the main idea was to point it to a remote/another redis instance running as AWS ElastiCache service. If only there was a way to specify the Redis server as a parameter it will make the docker image quite flexible to operate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants