-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure the URL proxy container is running when displaying URLs for environments. #20
Comments
I'm considering looking into whether it's possible to usie the docker-gen that the proxy is build on to make a container that fiddles the /etc/hosts of the host machine to give every container a resolvable hostname. Something along the lines of Makes it easier to get at the database server from the host (no more using docker inspect to extract the hostname after each On the olther hand, when the drush container runs as root, there's no warnings from drush cc all. Thoughts? |
Not a terrible idea, but not all of the containers expose ports to the host. I'd prefer to only expose what's required for getting work done. See #19 for the feature request to make DNS less of a hassle. Re: drush & database, in the last few days I've added an SSH server to the drush container, and added code that writes an drush alias to the host. This allows you to do exactly what you are suggesting, without needing to expose the database server to the host. I've tested it with There's still work to do related to that setup. We should definitely not use root to connect to the drush/ssh container. I could definitely use some help improving that container! https://github.com/terra-ops/docker-drush |
Well, that's the point really. The mysql container doesn't expose the 3306 port to the host, only to linked containers, but if you have the IP of the container, you can connect to mysqld just fine. But digging out the IP of docker inspect to add to your Mysql administration app each time is a hassle. I'll try out the new Drush container in my homebrew setup, but it seems that it failed building on hub.docker.com? However as far as I can tell there's still issues that's hard to fix. Would be nice if there was a simple way to make the webserver and drush containers run under the same uid as the user running the container, but that's not so simple, as far as I know. |
Quick note: I finally got round to trying out jderusse/dns-gen which does exactly what I was thinking. In a pure docker-compose setup it makes things much easier as I can just put project_database_1.docker in settings.php, and both the site an Drush on the outside will work. |
…xy container is running and if not run `url-proxy:enable` command.
We currently show the environment urls (http://project.env.server) as being available always.
We have a
url-proxy:enable
command available.We should figure out a way to ensure the URL proxy server is running and offer to enable it for the user.
The text was updated successfully, but these errors were encountered: