cat docker-compose.yaml
services:
traefik:
# The official v3 Traefik docker image
image: traefik:v3.1
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8354:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- /opt/traefik/config:/etc/traefik
# - ./config/dynamic.yml:/etc/traefik/dynamic.yml:ro
# - ./certs:/etc/certs:ro
traefik-1 | 2024-08-18T07:05:16Z ERR Failed to retrieve information of the docker client and server host error="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" providerName=docker
traefik-1 | 2024-08-18T07:05:16Z ERR Provider error, retrying in 697.634873ms error="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" providerName=docker
traefik-1 | 2024-08-18T07:03:45Z ERR Failed to retrieve information of the docker client and server host error="Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?" providerName=docker
traefik-1 | 2024-08-18T07:03:45Z ERR Provider error, retrying in 611.148557ms error="Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?" providerName=docker