initial commit - traeffik

This commit is contained in:
ray 2020-05-27 11:42:54 +01:00
commit 7b3576bcbd
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,15 @@
version: "3.3"
services:
traefik:
image: "traefik:v2.0.0"
restart: unless-stopped
command:
- --entrypoints.web.address=:80
- --providers.docker=true
ports:
- "192.168.0.97:80:80"
- "192.168.0.97:8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yml:/etc/traefik/traefik.yml"

8
traefik/traefik.yml Normal file
View File

@ -0,0 +1,8 @@
# Docker configuration backend
providers:
docker:
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.m.home`)"
# API and dashboard configuration
api:
insecure: true