Re:Keycloak SSO with Docker Compose and Nginx
by silverwind on Sunday February 11, 2024 @10:24AM
(#39335587)
Why is `docker run` "unusual in production"? I prefer it over `docker-compose` because it eliminates one mostly useless layer of abstraction.
[ Parent
| on HN ]
Re:Keycloak SSO with Docker Compose and Nginx
by zerof1l on Sunday February 11, 2024 @11:56AM
(#39336313)
Because when you run 10 services most of whom require at least one supporting service and for each service you need to specify at least 5 different options (volumes, resource limits, health check, depends on, mac address, IP address, etc); with just `docker run` you will have a mess. It's much simpler to have a docker-compose file per service with all of its dependent services.
The docker compose to plain docker run is the same as C/C++ to Assembly.
Re:Keycloak SSO with Docker Compose and Nginx
by Helmut10001 on Sunday February 11, 2024 @11:13AM
(#39335980)
Just one reason for me is that I can add the docker-compose.yml to git to track changes over time and have a more reproducible setup.