Proxy
=====
There's a `Traefik Proxy `_ running on all Docker servers, dispatching all incoming HTTP/HTTPS requests to the desired Docker containers.
The proxies also provides a dashboard, which can be used to display a few informations about the deployed routes & services (Docker containers):
- `Dev Proxy Dashboard `_
- `Prod Proxy Dashboard `_
.. hint::
The proxies are deployed in the `Proxy GitLab project `_ and the dashboards are only available from within private networks.
Routing requests
----------------
If you're deploying a Docker container and you want HTTP(S) requests to be routed to your container, you've the options below.
These options automatically follow the URL naming scheme defined in the :ref:`Environments`.
.. important::
You never want to specify URL's or Traefik rules manually. If both of the options below don't work for you, annoy Dominique first!
Static files
~~~~~~~~~~~~
To deploy static files, use the `Web Compose CI file `_ in your GitLab CI pipeline.
With this setup, you don't have to bother w/ Docker or Docker Compose itself.
With Docker Compose
~~~~~~~~~~~~~~~~~~~
To get more control, create your own `Docker Compose `_ (i.e. ``docker-compose.yml``) file in your project and use the `Docker Compose CI file `_ in your pipeline.
Now you're mostly in charge of the Compose file.