-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Nginx/Node/Redis and Flask/Redis Compose example #222
Conversation
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Ajeet Singh Raina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Hello @ajeetraina |
Signed-off-by: Ajeet Singh Raina <ajeetraina@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @ajeetraina
Please don't remove existing sample even if your contribution provide a more complex example.
Next time can you make a PR per sample? It's easier to review and merge, and it avoids to block your whole samples if only one need some changes.
Can you remove the unnecessary nginx-node-redis
directory?
You also need to reference the new samples in the main README.md
file
Regarding the nginx-node-redis
sample, I think it should make more sens to only have one directory with the build of the node backend:
- The image will be build only once
- Using the
hostname
property, resolved by compose DNS, in your js code will be efficient to replace your hardcodedres.send('web1: Total number of visits is: ' + numVisitsToDisplay);
Hi @glours I have made the changes. Let me know if it looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajeetraina I can't merge this one, the Flask
single service sample is still deleted in the PR 😞
I proposed you some changes to simplify the 2nd sample and remove duplicate code
You also need to sign all your commits and not only the last one, my bad
|
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Ajeet Singh Raina <ajeetraina@gmail.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Co-authored-by: Guillaume Lours <guillaume@lours.me> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Co-authored-by: Guillaume Lours <guillaume@lours.me> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Co-authored-by: Guillaume Lours <guillaume@lours.me> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Ajeet Singh Raina <ajeetraina@gmail.com> Signed-off-by: ajeetraina <ajeetraina@gmail.com>
Signed-off-by: Ajeet Singh Raina <ajeetraina@gmail.com>
I checked git log and it does show that it is signed-off. I am not sure why its not working.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're close to merge it!
I'm sorry I didn't saw improvements we can do on the Dockerfiles
Co-authored-by: Guillaume Lours <guillaume@lours.me>
Co-authored-by: Guillaume Lours <guillaume@lours.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😬 the sample isn't starting due to a javascript typo
Co-authored-by: Guillaume Lours <guillaume@lours.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks again for your contribution
Here's a single PR for multiple docker-compose sample projects that implements visitor counter powered by the following stack -
Project #1
Project #2