-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Feature/implement traefik documentation #628
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
Feature/implement traefik documentation #628
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
deployment/traefik.md
Outdated
|
||
## Basic implementation | ||
|
||
[Traefik](https://traefik.io) is a reverse proxy / load balancer that's easy, dynamic, automatic, fast, full-featured, open source, production proven, providing metrics, and integrating with every major cluster technologie |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technology
deployment/traefik.md
Outdated
@@ -0,0 +1,122 @@ | |||
# Implement Traefik into API Platform dockerized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Implement Traefik into API Platform dockerized | |
# Implementing Traefik Into API Platform Dockerized |
deployment/traefik.md
Outdated
@@ -0,0 +1,122 @@ | |||
# Implement Traefik into API Platform dockerized | |||
|
|||
## Basic implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Basic implementation | |
## Basic Implementation |
deployment/traefik.md
Outdated
|
||
## Basic implementation | ||
|
||
[Traefik](https://traefik.io) is a reverse proxy / load balancer that's easy, dynamic, automatic, fast, full-featured, open source, production proven, providing metrics, and integrating with every major cluster technology |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Traefik](https://traefik.io) is a reverse proxy / load balancer that's easy, dynamic, automatic, fast, full-featured, open source, production proven, providing metrics, and integrating with every major cluster technology | |
[Traefik](https://traefik.io) is a reverse proxy / load balancer that's easy, dynamic, automatic, fast, full-featured, open source, production proven, providing metrics, and integrating with every major cluster technology. |
deployment/traefik.md
Outdated
|
||
This tool will help you to define your own routes for your client, api and more generally for your containers. | ||
|
||
Use this custom API Platform docker-compose.yml file which implements ready-to-use Traefik container configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this custom API Platform docker-compose.yml file which implements ready-to-use Traefik container configuration. | |
Use this custom API Platform `docker-compose.yml` file which implements ready-to-use Traefik container configuration. |
deployment/traefik.md
Outdated
Override ports and add labels to tell Traefik to listen the routes mentionned and redirect routes to specified container. | ||
|
||
|
||
```--api``` Tell Traefik to generate a browser view to watch containers and IP/DNS associated easier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```--api``` Tell Traefik to generate a browser view to watch containers and IP/DNS associated easier | |
`--api` Tell Traefik to generate a browser view to watch containers and IP/DNS associated easier |
deployment/traefik.md
Outdated
Don't forget the db-data, then database won't work in this dockerized solution. | ||
|
||
```localhost``` is a reserved domain referred in your ```/etc/hosts```. | ||
If you want to implement custom DNS such as production DNS in local, just put them at the end of your ```/etc/host``` file like that : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to implement custom DNS such as production DNS in local, just put them at the end of your ```/etc/host``` file like that : | |
If you want to implement custom DNS such as production DNS in local, just put them at the end of your `/etc/hosts` file like that: |
deployment/traefik.md
Outdated
|
||
``` | ||
# /etc/hosts | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... | |
# ... |
deployment/traefik.md
Outdated
127.0.0.1 your.domain.com | ||
``` | ||
|
||
If you do that, you'll have to update the nelmio part in your```api/.env``` and accept the URL specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do that, you'll have to update the nelmio part in your```api/.env``` and accept the URL specified | |
If you do that, you'll have to update the `CORS_ALLOW_ORIGIN` environment variable `api/.env` to accept the specified URL. |
deployment/traefik.md
Outdated
|
||
If you do that, you'll have to update the nelmio part in your```api/.env``` and accept the URL specified | ||
|
||
## Known problems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Known problems | |
## Known Issues |
deployment/traefik.md
Outdated
|
||
## Known problems | ||
|
||
Take care of your network, if it's a type B network it may not work because containers are in type B network and it will be in conflict with Traefik sub-network |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take care of your network, if it's a type B network it may not work because containers are in type B network and it will be in conflict with Traefik sub-network | |
If your network is of type B, it may conflict with the traefik sub-network. |
ping @dunglas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @darkweak! |
No description provided.