first row
This commit is contained in:
14
example_start_treafik
Normal file
14
example_start_treafik
Normal 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
|
||||
Reference in New Issue
Block a user