Hello,
I wanted to setup my environment for v3.
I don't use any specifics that were removed in v3, so I changed the compose file to use the v3 image, but when I did so, my containers stopped to be accessible.
I reverted back to 2.6, and they are still inaccessible, and I have no idea why.
The external services defined in yml files work fine, it's just for the container ones that fail.
Example files:
---
version: "3"
services:
paste-web:
image: privatebin/nginx-fpm-alpine
container_name: paste-web
volumes:
- /opt/docker/data/paste-data:/srv/data
- ./conf.php:/srv/cfg/conf.php
restart: unless-stopped
networks:
- traefik
labels:
- "traefik.http.routers.paste-web.rule=Host(`paste.example.com`)"
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.paste-web.entrypoints=web,websecure"
- "traefik.http.services.paste-web.loadbalancer.server.port=8080"
- "traefik.http.routers.paste-web.tls=true"
networks:
traefik:
external: true
Traefik config:
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
watch: true
exposedByDefault: false
file:
directory: "/etc/traefik/"
watch: true
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: :443
scheme: https
priority: 1
forwardedHeaders:
insecure: true
websecure:
address: :443
api:
dashboard: true
debug: true
serversTransport:
insecureSkipVerify: true
log:
level: DEBUG
What happens when I try to connect :
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:01-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:01-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:01-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:01-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://paste.example.com/ [following]
--2023-07-24 11:43:02-- https://paste.example.com/
Reusing existing connection to paste.example.com:443.
HTTP request sent, awaiting response... ^C
If I try the same thing in Traefik v3 I get a http 418 which doesn't help much.
I tried to remove the forwardedHeaders part of the config, it doesn't change anything.
I am really puzzled by this, and I have no idea what's going on.
Thank you for your help!