dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Can we install nginx staff in a standalone container?

Open hbin opened this issue 11 years ago • 5 comments

It seem like that you build all the staff in one image. But as the official Best Practices says: Run only one process per container.

hbin avatar Feb 11 '15 06:02 hbin

you're right, i know that. but this docker image(rails-nginx-unicorn-*) help easy to start rails app.

if split nginx, create new Dockerfile(like rails-unicorn) only execute unicorn and link with nginx container.. link strategy is depends on application, currently i don't have good idea. someday i will do that.

thankyou

seapy avatar Feb 11 '15 16:02 seapy

@seapy maybe a docker-compose can be added to manage both containers and also separate db also. that would be a complete solution i believe.

itsSaad avatar Mar 27 '15 14:03 itsSaad

@itsSaad I think the same as you. but docker compose is not recommend production yet.

seapy avatar Mar 29 '15 12:03 seapy

@seapy do you happen to know what really is wrong with using it in production. Docker guide only tells us not to use in production. why not?

itsSaad avatar Mar 30 '15 10:03 itsSaad

http://www.infoworld.com/article/3046464/application-development/docker-not-production-ready-not-so-says-docker.html

laughingMan avatar Jul 14 '16 19:07 laughingMan