Hello everyone,
I am quite new to traefik, but like the concept very much
Since a week I have a new NAS (Asustor Lockerstor) and I am using most apps as docker container.
I started to play around with traefik because I want to expose to the internet:
- plex as docker container
- webdav from host system
My problem is, I cannot get the things running. I could get the whoami container and traefik dashboard started, but the moment I am using a traefik.yml, both are not working anymore.
My second problem, I am using the webdav of the NAS and want to expose that. But I don't get it running. What did I miss?
The subdomain is pointing to my ip address.
Here is my docker-compose.yml:
version: '3'
services:
traefik:
image: traefik:latest
container_name: traefik
ports:
- 80:80
- 443:443
- 9998:8080
volumes:
- /etc/traefik:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock
- /volume1/Docker/traefik:/logs
restart: unless-stopped
whoami:
image: traefik/whoami
container_name: whoami_in_traefik
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
- "traefik.http.routers.whoami.entrypoints=web"
ports:
- 12345:80
networks:
default:
name: traefik
external: true
and here my traefik.yml:
global:
checkNewVersion: true
sendAnonymousUsage: false # true by default
log:
level: ERROR # DEBUG, INFO, WARNING, ERROR, CRITICAL
format: common
filePath: /var/log/traefik/traefik.log
accesslog:
format: common # common, json, logfmt
filePath: /var/log/traefik/access.log
api:
dashboard: true
insecure: true
# Entry Points configuration
# ---
entryPoints:
web:
address: :80
websecure:
address: :443
dashboard:
address: :9998
http:
routers:
nondocker:
entryPoints:
- websecure
rule: "Host(`files.mydomain.com`)"
service: someservice
tls: {}
services:
someservice:
loadBalancer:
passHostHeader: true
servers:
- url: https://192.168.1.100:27410
providers:
docker:
exposedByDefault: true
file:
# watch for dynamic configuration changes
directory: /etc/traefik
watch: true
Sorry for the beginner questions, I am trying since about a week, but now I don't know what to do anymore.
Thank you and best regards