Add the traefik-v2 post files
rodzic
d11415a935
commit
e39a0726ef
|
@ -0,0 +1,7 @@
|
|||
|
||||
docker-compose -f traefik-v1.7-dashboard.yml up
|
||||
docker-compose -f traefik-v2.1-dashboard.yml up
|
||||
docker-compose -f traefik-v1.7-dashboard-with-basic-auth.yml up
|
||||
docker-compose -f traefik-v2.1-dashboard-with-basic-auth.yml up
|
||||
docker-compose -f traefik-v1.7-nginx-backend.yml up
|
||||
docker-compose -f traefik-v2.1-nginx-backend.yml up
|
|
@ -0,0 +1,21 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v1.7
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints=Name:http Address::80
|
||||
- --docker
|
||||
- --docker.exposedbydefault=false
|
||||
- --logLevel=DEBUG
|
||||
- --api
|
||||
labels:
|
||||
traefik.port: 8080
|
||||
traefik.frontend.rule: Host:traefik-ui.local
|
||||
traefik.enable: 'true'
|
||||
traefik.frontend.auth.basic.users: traefik_user:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
@ -0,0 +1,20 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v1.7
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints=Name:http Address::80
|
||||
- --docker
|
||||
- --docker.exposedbydefault=false
|
||||
- --logLevel=DEBUG
|
||||
- --api
|
||||
labels:
|
||||
traefik.port: 8080
|
||||
traefik.frontend.rule: Host:traefik-ui.local
|
||||
traefik.enable: 'true'
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
@ -0,0 +1,29 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v1.7
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints=Name:http Address::80
|
||||
- --docker
|
||||
- --docker.exposedbydefault=false
|
||||
- --logLevel=DEBUG
|
||||
- --api
|
||||
labels:
|
||||
traefik.port: 8080
|
||||
traefik.frontend.rule: Host:traefik-ui.local
|
||||
traefik.enable: 'true'
|
||||
traefik.frontend.auth.basic.users: traefik_user:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
nginx:
|
||||
image: nginx:1.17.8-alpine
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.frontend.rule: Host:nginx.local
|
||||
traefik.frontend.entryPoints: http
|
||||
traefik.port: 80
|
|
@ -0,0 +1,23 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v2.1
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints.http.address=:80
|
||||
- --providers.docker.exposedByDefault=false
|
||||
- --log.level=DEBUG
|
||||
- --api=true
|
||||
- --api.dashboard=true
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.traefik-dashboard-http-router.entrypoints: http
|
||||
traefik.http.routers.traefik-dashboard-http-router.rule: Host(`traefik-ui.local`)
|
||||
traefik.http.routers.traefik-dashboard-http-router.service: api@internal
|
||||
traefik.http.middlewares.traefik-dashboard-auth.basicauth.users: traefik_user:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0
|
||||
traefik.http.routers.traefik-dashboard-http-router.middlewares: traefik-dashboard-auth
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
@ -0,0 +1,21 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v2.1
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints.http.address=:80
|
||||
- --providers.docker.exposedByDefault=false
|
||||
- --log.level=DEBUG
|
||||
- --api=true
|
||||
- --api.dashboard=true
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.traefik-dashboard-http-router.entrypoints: http
|
||||
traefik.http.routers.traefik-dashboard-http-router.rule: Host(`traefik-ui.local`)
|
||||
traefik.http.routers.traefik-dashboard-http-router.service: api@internal
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
@ -0,0 +1,31 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
traefik:
|
||||
image: traefik:v2.1
|
||||
ports:
|
||||
- 80:80
|
||||
command:
|
||||
- --entrypoints.http.address=:80
|
||||
- --providers.docker.exposedByDefault=false
|
||||
- --log.level=DEBUG
|
||||
- --api=true
|
||||
- --api.dashboard=true
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.traefik-dashboard-http-router.entrypoints: http
|
||||
traefik.http.routers.traefik-dashboard-http-router.rule: Host(`traefik-ui.local`)
|
||||
traefik.http.routers.traefik-dashboard-http-router.service: api@internal
|
||||
traefik.http.middlewares.traefik-dashboard-auth.basicauth.users: traefik_user:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0
|
||||
traefik.http.routers.traefik-dashboard-http-router.middlewares: traefik-dashboard-auth
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
nginx:
|
||||
image: nginx:1.17.8-alpine
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.http.routers.nginx-http-router.entrypoints: http
|
||||
traefik.http.routers.nginx-http-router.rule: Host(`nginx.local`)
|
||||
traefik.http.services.nginx-service.loadbalancer.server.port: 80
|
Ładowanie…
Reference in New Issue