SSL-Proxy¶
To secure access to all services we recommend using a reverse proxy, in our example we are going to use Traefik v1.7
Traefik is able to proxy to requests to configured containers in the same project without further configuration. It listens on the docker-socket and if a configured container is started it proxies requests to it. The configuration for how and what to proxy is done on the container configuration by setting labels.
Example:
traefik:
command: --logLevel=INFO
--docker
--docker.exposedByDefault=false
--entrypoints="Name:http Address::80"
container_name: traefik
image: traefik:1.7
ports:
- 80:80
- 443:443
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock