Commit 2a6e8140 authored by David Danier's avatar David Danier
Browse files

docs

parent eea697ab
......@@ -49,18 +49,8 @@ b5 update
# Your projects with traefik
To get your projects running with traefik I suggest the following schema:
* docker-compose.yml: Use this file to define all the services you need. DO NOT
open any ports here.
* docker-compose.localhost.yml: This file for opening the local ports, like
localhost:8000. This file can be used by anyone not caring about traefik and
should be the default configuration.
* docker-compose.traefik.yml: Neccessary changes to the configuration to get traefik
up and running. Basically adding the neccessary network and label options.
With b5 you should use `docker_compose_config_override` to choose the used additional
configuration file. This should default to 'localhost', developers might use local.yml
to change it to 'traefik'.
To use traefik you will need to setup a local domain and then change the project
configuration a little bit. I will try to get you through all the necessary steps:
## Providing a local domain (.t23dev)
......@@ -85,6 +75,19 @@ https://docs.google.com/document/d/1Pej_gE4yZVg0-vDY1azStgwHvq9J_oj-a4OrUbLpeSY/
## Example project configuration
To get your projects running with traefik I suggest the following schema:
* docker-compose.yml: Use this file to define all the services you need. DO NOT
open any ports here.
* docker-compose.localhost.yml: This file for opening the local ports, like
localhost:8000. This file can be used by anyone not caring about traefik and
should be the default configuration.
* docker-compose.traefik.yml: Neccessary changes to the configuration to get traefik
up and running. Basically adding the neccessary network and label options.
With b5 you should use `docker_compose_config_override` to choose the used additional
configuration file. This should default to 'localhost', developers might use local.yml
to change it to 'traefik'.
### config.yml
```yaml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment