Local dev environment works!
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user