Traefik error: field not found, node: redirect

Last night i added container watchguard, that states it watches containers and updates them accordingly.

But this morning, something wierd happened, i cannot run traefik docker any more

it shows error
whoami_1 | Starting up on port 80
traefik | 2019/10/04 09:31:09 command traefik error: field not found, node: redirect
traefik exited with code 1
traefik | 2019/10/04 09:31:09 command traefik error: field not found, node: redirect

:slight_smile: i suppose it updated traefik and all hell broke lose, can someone point me to the right direction?

thanks!

Make sure you are not using v1 configuration with v2.

you might be right, but im newbie on docker so please bear with me :slight_smile:

i have 4-5 free services for my friends, and now its down :smiley:

this is old docker-compose.yml

version: '3'

services:

  traefik:
    image: traefik:latest
    command: --docker --docker.domain=domain.com
    ports:
      - 80:80
      - 443:443
    networks:
      - web
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./traefik.toml:/traefik.toml
      - ./acme.json:/acme.json
    labels:
      - "traefik.frontend.rule=Host:traefik.domain.com"
      - "traefik.port=8080"
    container_name: traefik
    restart: always

  whoami:
    image: containous/whoami # A container that exposes an API to show its IP address
    labels:
      - "traefik.frontend.rule=Host:whoami.docker.localhost"

networks:
  web:
    external: true

i tried new docker-compose but like i said im confused as hell and it wont start at all

any way someone can assist me with correct docker-comose.yml for traefik?

:slight_smile: thanks guys

Hello,

Following the configuration that you are using Traefik v1.

So you have to replace:

image: traefik:latest

by

image: traefik:v1.7
1 Like

perfect, its up now! thank you @ldez

should i try to migrate to v2 ?