chore: updates
This commit is contained in:
parent
c53b246608
commit
840e90d5a9
|
@ -1,20 +1,15 @@
|
||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: "traefik:v2.4"
|
image: "traefik:v2.5"
|
||||||
command:
|
|
||||||
- "--api.debug=true"
|
|
||||||
- "--api.insecure=true"
|
|
||||||
- "--entrypoints.traefik_proxy.address=:80"
|
|
||||||
- "--log.level=DEBUG"
|
|
||||||
- "--providers.docker.exposedbydefault=false"
|
|
||||||
- "--providers.docker.network=traefik_proxy"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
- "./traefik.yml:/etc/traefik/traefik.yml"
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=false"
|
||||||
networks:
|
networks:
|
||||||
- traefik_proxy
|
- traefik_proxy
|
||||||
|
|
||||||
|
|
6
traefik.yml
Normal file
6
traefik.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
providers:
|
||||||
|
docker:
|
||||||
|
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
|
||||||
|
|
||||||
|
api:
|
||||||
|
insecure: true
|
Reference in a new issue