hey,
so i ahve treafik runing as a custom app trefik config below !!!
networks:
frontend:
external: True
services:
traefik:
container_name: traefik-rp
environment:
- CF_DNS_API_TOKEN=‘CF_DNS_API_TOKEN’
image: traefik:latest
networks:
- frontend
ports:
- ‘80:80’
- ‘443:443’
- ‘8080:8080’
restart: unless-stopped
volumes:
- /run/docker.sock:/run/docker.sock:ro
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
- ./config/conf.d/:/etc/traefik/conf.d/:ro
- ./data/certs/:/var/traefik/certs/:rw
i have my truenas dashbored running on difrent ports so i can use 443 and 80 i ahve the dashbored enabled just for testing im uisng nxing as a terst applaction and using a custome app with this config works
networks:
frontend:
external: True
services:
nginx:
container_name: nginx-ass
image: nginx:latest
labels:
- traefik.enable=true
- traefik.http.routers.nginx.rule=Host(nginx.example.com
)
- traefik.http.routers.nginx.tls.certresolver=cloudflare
- traefik.http.routers.nginx.entrypoints=websecure
- traefik.http.routers.nginx.tls=true
networks:
- frontend
restart: unless-stopped
now this config works great the issues is when i want to pass lables though truenas apps i get the apps to show up in treafik but it wont rout to them
anyone know how i can pass though
networks:
frontend:
external: True
to truenas apps
down below is my treafik config
global:
checkNewVersion: false
sendAnonymousUsage: false
api:
dashboard: true
disableDashboardAd: true
insecure: true
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: :443
certificatesResolvers:
cloudflare:
acme:
email: ‘example@example.com’
storage: /var/traefik/certs/cloudflare-acme.json
caServer: ‘https://acme-v02.api.letsencrypt.org/directory’
keyType: EC256
dnsChallenge:
resolvers:
- “1.1.1.1:53”
- “8.8.8.8:53”
providers:
docker:
endpoint: “unix:///var/run/docker.sock”
exposedByDefault: false
file:
directory: /etc/traefik
watch: true