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

Add Dockerfile and Compose #26

Closed

Conversation

peaonunes
Copy link

@peaonunes peaonunes commented Oct 7, 2019

Closes #17 .

  • Dockerfile for the frontend
  • Dockerfile for the cache service
  • docker-compose.yml file to start the
  • Redis Container
  • keycloak server container
  • frontend
  • redis micro-service

In order to containerize the cache service I had to update the package since some dependencies were missing.
I recommend separating the project in two main folders frontend and backend, or cache-service and app whatever suits better!

I need help though. Seems like I cannot get the cache service to connect with redis. I tried a bunch of different configurations both on docker-compose and in the project itself. Can anyone help or have an ideia for this? I decided opening up the PR because I practically gave up after a few hours. The error is pretty straightforward, but I could build a configuration that makes the cache service "see" the redis.

cache-service_1  | [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
cache-service_1  |     at Object._errnoException (util.js:1019:11)
cache-service_1  |     at _exceptionWithHostPort (util.js:1041:20)
cache-service_1  |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1175:14)

@peaonunes peaonunes closed this Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Containerize Application
1 participant