I recently set up Traefik for my Django App pointing two subdomains to one IP.
Everything was working fine, Traefik managed SSL certificates for this two subdomains but suddenly my users started having sporadic DNS_PROBE_FINISHED_NXDOMAIN.
I consulted my VPS provider (and where i've managed the DNS records) and they said everything was configured correctly.
I am really lost and don't know what to do to fix this, please help!
Here I show my configuration:
Django app
app:
build:
context: .
ports:
- 8000:8000
volumes:
- ./app:/app
command: >
sh -c "python manage.py migrate &&
python manage.py collectstatic --no-input &&
gunicorn --bind 0.0.0.0:8000 app.wsgi"
environment:
- DEBUG=0
env_file:
- ./.env
depends_on:
- db
labels:
- traefik.enable=true
- traefik.http.routers.app-http.rule=Host(intranet.subdomain.com
,intranet2.subdomain.com
)
- traefik.http.routers.app-http.tls=true
- traefik.http.routers.app-http.tls.certresolver=letsencrypt
traefik:
image: traefik:v2.3
ports:
- 80:80
- 443:443
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.toml:/etc/traefik/traefik.toml
- traefik-public-certificates:/certificates
volumes:
traefik-public-certificates: