first row

This commit is contained in:
nutzer26
2022-12-13 09:19:15 +01:00
commit 4f6426ff6f
8 changed files with 805 additions and 0 deletions

14
example_start_treafik Normal file
View File

@@ -0,0 +1,14 @@
cnbc-LG-0815!
htpasswd -nBC 10 test
docker run -d -p 8080:8080 -p 80:80 \
--label "traefik.enable=true" \
-v $PWD/traefik-api.yml:/etc/traefik/traefik.yml \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
--label "traefik.http.routers.dashboard.rule=Host(\`traefik.docker.local\`) && (PathPrefix(\`/api\`) || PathPrefix(\`/dashboard\`))" \
--label "traefik.http.routers.dashboard.service=api@internal" \
--label "traefik.http.routers.dashboard.middlewares=auth" \
--label 'traefik.http.middlewares.auth.basicauth.users=test:$2y$10$/buNijLGE3X18RmxOjx8BuY97zXwZtGIFkXwniOh2zbau.IRJYdwC' \
--label "traefik.http.routers.dashboard.entrypoints=http" \
--name traefik --rm traefik:v2.9.1