add docker compose file for traefik

This commit is contained in:
Patrick Jentsch
2019-12-06 10:29:38 +01:00
parent c9a5139a56
commit 592da38946
2 changed files with 67 additions and 17 deletions

View File

@ -1,25 +1,9 @@
version: '3'
services:
traefik:
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.nopaque.address=:5000"
image: traefik:2.0
ports:
- 5000:5000
- 9090:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
web:
ports:
- "5000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nopaque.entrypoints=nopaque"
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
- "5000:5000"
depends_on:
- db
- redis