I deployed portainer with the following docker-compose.yml:
version: '2'
networks:
web:
external: true
services:
portainer:
image: portainer/portainer
container_name: portainer
command: -H unix:///var/run/docker.sock
ports:
- 9000
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
networks:
- web
labels:
- traefik.enable=true
- traefik.basic.protocol=http
- traefik.docker.network=web
- traefik.backend=portainer
- traefik.frontend.rule=Host:portainer.mydomain.ca
- traefik.port=9000
volumes:
portainer_data:
external: true
It has worked fine along with my other services fronted by Traefik.
After my server rebooted I now get a 502 bad gateway at portainer.mydomain.ca
The container is running, it is attached to the 'web' network, and its logs show it is listening on :9000.
In Traefik's web interface, the frontends and backends are listed, backed has the correct container ip address and port.
Anyone clue me in as to why this would stop working?