AtoMiC-ToolKit-Docker icon indicating copy to clipboard operation
AtoMiC-ToolKit-Docker copied to clipboard

404 page not found & traefik doesn't want to show me the logs...

Open KipourosV opened this issue 6 years ago • 2 comments

Been trying since this afternoon to make this work. After multiple failed attempts, I removed everyting else from the yml file and left only traefik and networks:

version: "3.6" services: traefik: hostname: traefik image: traefik:latest container_name: traefik restart: always domainname: ${DOMAINNAME} networks: - default - traefik_proxy ports: - "80:80" - "443:443" - "8080:8080" environment: - CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL} - CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY} labels: - "traefik.enable=true" - "traefik.backend=traefik" - "traefik.frontend.rule=Host:traefik.${DOMAINNAME}" - "traefik.port=8080" - "traefik.docker.network=traefik_proxy" - "traefik.frontend.headers.SSLRedirect=true" - "traefik.frontend.headers.STSSeconds=315360000" - "traefik.frontend.headers.browserXSSFilter=true" - "traefik.frontend.headers.contentTypeNosniff=true" - "traefik.frontend.headers.forceSTSHeader=true" - "traefik.frontend.headers.SSLHost=example.com" - "traefik.frontend.headers.STSIncludeSubdomains=true" - "traefik.frontend.headers.STSPreload=true" - "traefik.frontend.headers.frameDeny=true" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ${USERDIR}/docker/traefik:/etc/traefik - ${USERDIR}/docker/shared:/shared networks: traefik_proxy: external: name: traefik_proxy default: driver: bridge

This is what I get when trying to get the logs:

docker-compose -f docker-compose.yml up -d Pulling traefik (traefik:latest)... latest: Pulling from library/traefik 7a433ecdf92b: Pull complete d759fcb7fc9b: Pull complete Creating traefik ... Pulling traefik (traefik:latest)... Creating traefik ... done

docker-compose logs -tf --tail="50" traefik Attaching to traefik

and stays there for ever. Trying to access the hosts internal ip or externaly I a 404 page not found. What am i doing wrong???

KipourosV avatar Feb 24 '19 22:02 KipourosV

Hey, I am facing this same issue. I'm not sure what we did wrong, but if anyone knows what happens I will be very grateful. I am using the subfolder flavour.

danielo515 avatar Mar 09 '19 20:03 danielo515

It is now working for me. Make sure that:

  • the traefik container has the proper paths configured
  • the configuration toml file is on that path an accessible
  • you get logs, if you don't get logs then you are not providing the config.toml file

danielo515 avatar Mar 10 '19 10:03 danielo515