Hi, I am struggling with running a configuration presented in the documentation.
I have a domain that resolves to a local IP address using my local DNS server.
This probably is not a network problem because I've run Ngnix proxy manager before and it didn't have a problem with working.
After opening my domain in browser i've got: ERR_CONNECTION_REFUSED
This is my config
version: "3"
services:
traefik:
image: "traefik:v2.10"
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/mnt/nfsdir_client/letsencrypt:/letsencrypt"
wiki_db:
image: postgres:15-alpine
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
logging:
driver: "none"
restart: unless-stopped
volumes:
- /mnt/nfsdir_client/wiki_js:/var/lib/postgresql/data
wiki:
image: ghcr.io/requarks/wiki:2
container_name: wiki
hostname: wiki
depends_on:
- wiki_db
environment:
DB_TYPE: postgres
DB_HOST: wiki_db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
restart: unless-stopped
volumes:
- /mnt/nfsdir_client/wiki_docs:/data
ports:
- "3000:3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.wiki.rule=Host(`my-domain.com`)"
- "traefik.http.routers.wiki.entrypoints=web"
Curl log with --ascii-trace
== Info: Trying 10.0.0.101:80...
== Info: Connected to my-domain.com (10.0.0.101) port 80 (#0)
=> Send header, 81 bytes (0x51)
0000: GET / HTTP/1.1
0010: Host: my-domain.com
0029: User-Agent: curl/7.81.0
0042: Accept: */*
004f:
== Info: Mark bundle as not supporting multiuse
<= Recv header, 20 bytes (0x14)
0000: HTTP/1.1 302 Found
<= Recv header, 22 bytes (0x16)
0000: Content-Language: en
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 28
<= Recv header, 41 bytes (0x29)
0000: Content-Type: text/plain; charset=utf-8
<= Recv header, 37 bytes (0x25)
0000: Date: Thu, 16 Nov 2023 09:30:38 GMT
<= Recv header, 18 bytes (0x12)
0000: Location: /login
<= Recv header, 30 bytes (0x1e)
0000: Referrer-Policy: same-origin
<= Recv header, 91 bytes (0x5b)
0000: Set-Cookie: loginRedirect=%2F; Max-Age=900; Path=/; Expires=Thu,
0040: 16 Nov 2023 09:45:38 GMT
<= Recv header, 31 bytes (0x1f)
0000: Vary: Accept, Accept-Encoding
<= Recv header, 33 bytes (0x21)
0000: X-Content-Type-Options: nosniff
<= Recv header, 23 bytes (0x17)
0000: X-Frame-Options: deny
<= Recv header, 23 bytes (0x17)
0000: X-Powered-By: Express
<= Recv header, 26 bytes (0x1a)
0000: X-Ua-Compatible: IE=edge
<= Recv header, 33 bytes (0x21)
0000: X-Xss-Protection: 1; mode=block
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 28 bytes (0x1c)
0000: Found. Redirecting to /login
== Info: Connection #0 to host my-domain.com left intact