简体   繁体   中英

Docker: Running multiple applications VS running multiple containers

I am trying to run Wildfly , Jenkins and Postgresql in Docker container(s).

As far as I could understand from articles I've read, the Docker way is to have each application run in a different container.

Is my assumption correct or is it better to have only one container containing these three applications?

Afaik the basic philosophy behind docker is to run one service per container. You can run whole application inside a container, but I don't think that will go well with the way docker work. Running different services in different containers gives you more flexibility and a better modularity for your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM