An easy way use the Traefik reverse proxy with docker-compose.
- Docker
- copy the traefik.yml.example to traefik.yml
- edit it if needed
- go into configuration folder and copy the dynamic.yml.example to dynamic.yml
- edit it if needed (for example to edit the traefik password)
- copy the docker-compose.yml.example to docker-compose.yml
- edit it with all you want to deploy
Important
Create the acme.json
file in the traefik
dir, and change permissions running chmod 600 acme.json
on it
Be sure about the proxy
network exists. If not:
docker network create proxy
Check all labels into docker-compose.yml and be sure you have configured it correctly.
DON'T MISS OUT THIS LABEL
The traefik.http.services.portainer.loadbalancer.server.port=xxxx
label is where Traefik will internally redirect.