Local dev environment works!

This commit is contained in:
Luke Murphy
2020-04-30 11:50:59 +02:00
parent 99400dd672
commit 6645a01ed1
4 changed files with 24 additions and 33 deletions

View File

@ -1,11 +1,19 @@
---
version: "3.7"
services:
traefik:
container_name: traefik
configs:
- source: traefik-yml-dev
target: /etc/traefik/traefik.yml
configs:
traefik-yml-dev:
file: ./config/dev/traefik-v1.yml
command:
- "--api=true"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`localhost`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.routers.traefik.service=api@internal"