Local dev environment works!

This commit is contained in:
Luke Murphy 2020-04-30 11:50:59 +02:00
parent 99400dd672
commit 6645a01ed1
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 24 additions and 33 deletions

View File

@ -1,18 +0,0 @@
---
log:
level: "ERROR"
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
api:
dashboard: true
debug: true
entrypoints:
web:
address: ":80"
dashboard:
address: ":8080"

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"

View File

@ -1,9 +1,14 @@
---
version: "3.7"
services:
traefik:
restart: always
ports:
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
configs:
- source: traefik-yml-prod
target: /etc/traefik/traefik.yml
@ -32,3 +37,6 @@ networks:
configs:
traefik-yml-prod:
file: ./config/prod/traefik-v1.yml
volumes:
letsencrypt:

View File

@ -1,15 +1,8 @@
---
version: "3.8"
version: "3.7"
services:
traefik:
image: "traefik:v2.2"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
volumes:
letsencrypt: