chore: updates

This commit is contained in:
Oliver Davies 2022-03-05 10:49:07 +00:00
parent c53b246608
commit 840e90d5a9
2 changed files with 10 additions and 9 deletions

View file

@ -1,20 +1,15 @@
services:
reverse-proxy:
image: "traefik:v2.4"
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"
image: "traefik:v2.5"
ports:
- "80:80"
- "8080:8080"
restart: unless-stopped
volumes:
- "./traefik.yml:/etc/traefik/traefik.yml"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
- "traefik.enable=false"
networks:
- traefik_proxy

6
traefik.yml Normal file
View file

@ -0,0 +1,6 @@
providers:
docker:
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
api:
insecure: true