diff --git a/traefik/traefik.yaml b/traefik/traefik.yaml new file mode 100644 index 0000000..4c3a7d0 --- /dev/null +++ b/traefik/traefik.yaml @@ -0,0 +1,27 @@ +networks: + proxy: + external: true + +name: traefik +services: + proxy: + image: ghcr.io/traefik/traefik:3.6.7 + ports: + - 80:80 + - 443:443 + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + - /srv/traefik/traefik.yaml:/etc/traefik/traefik.yaml:ro + - /srv/traefik/config:/etc/traefik/config + - /srv/traefik/certs:/etc/traefik/certs + networks: + - proxy + restart: unless-stopped + labels: + - traefik.enable=true + - traefik.http.routers.traefik.rule=Host(`traefik.rasbpi.de`) + - traefik.http.routers.traefik.entrypoints=websecure + - traefik.http.routers.traefik.tls=true + - traefik.http.routers.traefik.service=api@internal + - traefik.http.routers.traefik.middlewares=traefikAuth + - traefik.http.middlewares.traefikAuth.basicauth.users=admin:$$apr1$$09znghpy$$4hWNl4W.3GfRdtVYN8goE1 \ No newline at end of file