Running Umbraco in Containers – Share Your Experience #18468
Replies: 9 comments 3 replies
-
Hi! We're running a load balanced site in Azure with Docker containers via GitHub actions deployments. Our stage and feature environments are also running the same dockerfile. We're also using the same(ish) dockerfile to develop locally with docker-compose. We can simulate the load balanced environment locally quite easily that way. Overall it's working great. It's quite easy to adopt an Umbraco site to run in a container, even an existing one. I'd say the most work lies in creating/maintaining the deployment flow and the hardest challenges lies in debugging container errors once deployed to the platform. But neither of those things are specific to Umbraco. Challenges (most of them in development actually):
Production Dockerfile: https://gist.github.com/jrunestone/ab845ec50d3a8636c6bf44355b6cc8fc |
Beta Was this translation helpful? Give feedback.
-
Calling @mjpraxis and @CarlSargunar for their container feedback! |
Beta Was this translation helpful? Give feedback.
-
I did Umbraco with docker in both Azure and GCP, and my biggest challanges are still 3 things (based on v13):
The other bits which i usually do is disabling the keep alive job from umbraco, as it just make things harder as you need allow outgoing traffic to app and if you loadbalance with waf it doesnt make sense to do that from app and is better to use healtchecks to keep it alive instead. |
Beta Was this translation helpful? Give feedback.
-
I have lots of feedback on the Azure hosting and not just container specific if that's of any interest ;) |
Beta Was this translation helpful? Give feedback.
-
@nikolajlauridsen we are running several v15 Backoffice instances i Kubernetes(K8S). There was some fine-tuning in the beginning making sure that the setting was correct: The public URL to the Backoffice
Making sure that the setting UseHttps in K8S is false, since the internal traffic is HTTP. As we are only using the Backoffice, we had to make sure that K8S only had 0 (zero) or 1 pod running. |
Beta Was this translation helpful? Give feedback.
-
So, as someone who runs the k8s infra and other related cloud resources for our Umbraco team i can remark the following things:
Ill edit this if more things come to mind. |
Beta Was this translation helpful? Give feedback.
-
My experience with containers is mostly through Github actions and Azure Container apps, but for my contribs:
|
Beta Was this translation helpful? Give feedback.
-
Hi @nikolajlauridsen , We're running multiple websites (low, medium and big size) on our own k8s infrastructure since Umbraco 9. We are currently using the dotnet sdk and runtime official dotnet images. All our sites were recently migrated to Umbraco 13. Here are key features of our environment:
Our infrastructure is not perfect yet but allows each developer to work and deploy changes on environments using the Gitlab pipeline. The git flow and project structure is standardized for all website. I'll be happy to give more information if needed |
Beta Was this translation helpful? Give feedback.
-
Just adding a link to this older setup from @liamlaverty (maybe he has new insights since then) https://24days.in/umbraco-cms/2023/automatons/umbraco-docker/ Also some great insights from Scott Hanselman on how to optimize your .NET build to be as tiny as possible (basically treeshaking) and keeping the docker images tiny as well: https://www.youtube.com/watch?v=KqhhaMgbGhU |
Beta Was this translation helpful? Give feedback.
-
Are you running Umbraco in production using Docker, Kubernetes, or something similar? We'd love to hear how it's working for you! 🤩
We’re looking to improve how Umbraco runs in containerized environments, and your input can help shape future updates. If you have a Dockerfile or setup you’d be open to sharing, that would be super helpful too! 😄
Your feedback will help shape how we support containerized deployments in the future. Let’s discuss! 💭
Beta Was this translation helpful? Give feedback.
All reactions