Oqtane with Docker #2091
Unanswered
Sharafudeen
asked this question in
General
Replies: 3 comments 16 replies
-
@sbwalker any updates on this? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have started running Oqtane on Docker. The biggest challenge is that Oqtane manipulates files frequently. However, since the Docker image is immutable, we need to find a way to change Oqtane’s behavior without changing the files. |
Beta Was this translation helpful? Give feedback.
14 replies
-
@fonsecaf
You must watch the following.
Oqtane has a built in Https redirection to ensure identity protection.
So it should not let you setup on http.
Your option and tough ones unfortunately, at least that works for us in production.
We bundle and mount CA signed certificate along with image of the same domain or subdomain your Oqtane is hosted on.
Expose SSL port of your choice and map ingress accordingly.
We have it running in production but not in Azure container Apps.
Edit:
Any ingress provider must pass the true/real hostname like mysite.mydomain.com which is setup in Oqtane as Alias, hopefully same is the actual domain in most cases. But if desired, you can keep your oqtane running inside container on mysiteintenral.mydomain.com/ or even
mysiteintenral.anotherdomainn.com/.
The rule is ingress/proxy must transform and pass the alias oqtane is expecting and you must have the certificates for the same.
The trick:
1) Create and mount locally signed certificate potentially wildcard *.mysite.local and map to a docker volume
- ASPNETCORE_Kestrel__Certificates__Default__Path=/app/mysite.pfx (This path is path of certificate in the container/image)
2) Create Alias in Oqtane, (In Alias Table), I usually do in development environment for all environment and just make them default by going to SQL for the particular enviornment.
Alias: site1.mysite.com and so on as you require.
You will have Oqtane responding at site1.mysite.com if you have this alias in Oqtane and you have made it default. (Certificate issue is taken care as we have created our own and bundled in the image, so it should be possible to run Oqtane now on SSL)
Now the Ingress/proxy part:
Assuming your actual domain is: site1.realdomain.com
The proxy/ingress configuration should transform the domain name from site1.realdomain.com to site1.mysite.com. This must be done correctly as Oqtane shall on respond on the Alias which are configured in this case, site1.mysite.com.
There are other variations exist but the key to solution is, You must hit with correct Alias to Oqtane as it has it's own AliasResolver to support multitenancy so a simple ingress does not work until you somehow configure ingress to pass the actual alias configured in Oqtane.
Happy to share more details, if you need!
Regards
Sen
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any plans for Docker container feature added in Oqtane?
I've read an article, if we can develop dotnet core application with Docker then "dotnet core dependencies / prerequisites is not required?"
Thanks & Regards!
Beta Was this translation helpful? Give feedback.
All reactions