Skip to content
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

Automatically set up hosts file in docker-compose #925

Closed
Silic0nS0ldier opened this issue Jan 15, 2019 · 4 comments
Closed

Automatically set up hosts file in docker-compose #925

Silic0nS0ldier opened this issue Jan 15, 2019 · 4 comments
Labels
developer experience The one building with UF Docker up-for-grabs Not assigned yet

Comments

@Silic0nS0ldier
Copy link
Member

Currently the docker configuration uses localhost with a specific port. Not the easiest thing to remember and port collisions can be a problem. Something like https://github.com/guillemcanal/docker-hostmanager may help here, and offer a way to support HTTPS locally.

@Silic0nS0ldier Silic0nS0ldier added developer experience The one building with UF up-for-grabs Not assigned yet labels Jan 15, 2019
@ssnukala
Copy link
Contributor

http://blog.nbellocam.me/2016/03/01/nginx-serving-multiple-sites-docker/ here is another potential option. need to research this

@Silic0nS0ldier
Copy link
Member Author

If we aren't able to find a "docker native" solution, we might be able to do something with https://www.npmjs.com/package/hostile

@Silic0nS0ldier
Copy link
Member Author

Another alternative that I've stumbled onto is Traefik. It is quite extensible, well supported, and while experimenting with it locally no hosts needed to be set (I'd guess there is quite a bit behind the scenes). Provided its reliable enough, this would offer an excellent solution and potentially even play a role in #1003.

@Silic0nS0ldier
Copy link
Member Author

In the 2 years since this issue was created, the ecosystem has evolved. The next release of UserFrosting (4.5) will include support for Lando, which provides a lot out of the box. The tool also addresses the need for local hosting with Docker in most scenarios.

Given most solutions here involved something similar to Lando (citing lack of Docker APIs to manage hosts), I see little reason to keep this around.

If there is a desire later, this can be revisited. For now, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience The one building with UF Docker up-for-grabs Not assigned yet
Projects
None yet
Development

No branches or pull requests

3 participants