Repository navigation
Implement traefik as optional/future ddev-router, fixes #3458, fixes #2653 - #4248
Conversation
|
Download the artifacts for this pull request: |
|
@rfay wow. You already did the implementation. I will try that out ASAP |
|
@rfay Just started with some tests. First look is awesome. For the test I selected a project which communicates to another ddev project. Seems to work. |
|
@rfay Just started a Magento 2 project with Kibana and Elasticsearch. The Kibana is then listed in the Traefik Dashboard and can be accessed. The Elasticsearch Server is not listed. CLI shows a warning message:
|
Ah, the code assumes that the port pair will be a port pair, but a single port has always been acceptable (though rarely used). Thanks for pointing this out.
(Added those two things to the checklist) |
064ccd4 to
ea85e05
Compare
mattstein
left a comment
There was a problem hiding this comment.
Left a dazzling pile of suggestions I doubt will surprise you! ✨😄
|
|
||
| The job of the `ddev-router` is to receive most HTTP or HTTPS traffic, like requests to `*.ddev.site`, and deliver it to the correct project's web container, see [Container Architecture](../basics/architecture.md#container-architecture). The router as of DDEV v1.21.3 was always a forked, poorly documented nginx reverse proxy container. | ||
|
|
||
| The very popular [Traefik Proxy](https://traefik.io/traefik/) will replace the current `ddev-router` in the future, but is available as an experimental configuration today. Feedback is welcome. To enable it: |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Whoops! I misread that as ddev-router starting with its current forked nginx proxy in v1.21.3.
Your edit fixes my mistake, but also seems to suggest that in DDEV v1.21.3 ddev-router is no longer based on that nginx fork—but it still is by default if I’m understanding correctly. I edited my suggestion above to clarify that 1.21.3 adds an opt-in Traefik option that will become the default in some future release:
The default
ddev-routeris based on a forked, poorly-documented nginx reverse proxy. A future release will replace this with the popular Traefik Proxy, available in DDEV v1.21.3 as an experimental feature. Run the following to enable it:
There was a problem hiding this comment.
...and one more revision to try and clarify that 1.21.3 adds a new option for the first time. It’s weird to start the paragraph calling it a “default” when it’s been the only option before this new introduction:
ddev-routerhas been based on a forked, poorly-documented nginx reverse proxy. DDEV v1.21.3 adds a new router based on the popular Traefik Proxy, available as an experimental feature until it becomes the default in a future release. Run the following to enable it:
Updated my suggestion above and I promise I’ll leave it alone now.
f0598a3 to
07b260a
Compare
865d9f8 to
ccdc528
Compare
Co-authored-by: Matt Stein <[email protected]>
This reverts commit dc69e96.
1. It was generating certs and thus generating the CAROOT 2. When not doing HTTPS it shouldn't do either of those in the first place
469eac5 to
d07cdfc
Compare
The Problem/Issue/Bug:
How this PR Solves The Problem:
Lots of work
No longer binding docker.sock
TODO
ddev stopremoves project configuration from the ddev-global-cache/traefik/config directory, so it disappears from the traefik dashboard.DOCS
docker logs ddev-routerManual Testing Instructions:
ddev poweroff && ddev config global --use-traefikAutomated Testing Overview:
Related Issue Link(s):
Release/Deployment notes: