Closed JOduMonT closed 4 years ago
Hi @JOduMonT,
Thanks for submitting this to us. While I do not want to discourage you from your efforts, support for Docker/containers is not on our roadmap and doesn't fit within the project's scope; after an internal team discussion we won't be pursuing this at this time, as we have a lot of work left to do on the core product and won't be able to provide assistance in implementing this.
You are more than welcome to continue developing support for Docker in your own personal branch and submit a pull request for review when it has been completed, at which time we can re-evaluate.
@kristankenney thank for the following and the honesty ;)
ok I got it; https://github.com/hestiacp/hestiacp/issues/236
WHY DOCKER
Hestia is great but mostly dedicate to PHP. Docker could be usefull in case you want to run Python and Node.js apps.
THE PROBLEM
One of the missing link was how to tell nginx which "container" to connect to which "server_name", while it might be obvious it is through a proxy_pass, like most projects, the main issue difference is nginx is not in a container, so to interact with them we have to dns-proxy-server, which allow us to resolv the hostname of each container
PROOF OF CONCEPT
I'm able to use the NGINX of HESTIA as proxy for any docker container. Most of the job is done by dns-proxy-server which allow to do simple nginx server config like for each apps.
DOCKER INSTALLATION
curl -sSL https://raw.githubusercontent.com/JOduMonT/Debian/master/hestia-docker.sh | bash
DOCKER-COMPOSE.YML
DOCKER-COMPOSE.OVERRIDE.YML
START IT
NGINX CONFIG
TODO
[ ] clarify this post/issue [ ] make the installation compatible with Ubuntu [ ] adding user in docker group [ ] variable for proxy_pass [ ] more example in docker-compose.override.yml [ ] find more todo
adding user in docker group
Do we want to give access to every hestia-users ? ref: v-add-user
variable for proxy_pass
from this point we simply need to use variable for:
proxy_pass http://adminer.docker:8080;
where adminer.docker is the internal DNS of the container and 8080 is the port ref: v-add-web-domain-backendNOTE: I will obviously continue to work on it, but any help would be appreciate.