2017-07-09 17:46:14 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy:
|
2019-12-01 01:16:21 +01:00
|
|
|
image: traefik:v2.1
|
2017-07-09 17:46:14 +02:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2017-09-23 14:57:44 +02:00
|
|
|
- "10.0.0.1:8080:8080"
|
2017-07-09 17:46:14 +02:00
|
|
|
volumes:
|
2017-09-25 20:07:38 +02:00
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
2017-07-09 17:46:14 +02:00
|
|
|
- "./cert/:/cert/"
|
|
|
|
- "./config/:/etc/traefik/:ro"
|
|
|
|
labels:
|
2019-12-01 01:16:21 +01:00
|
|
|
- "traefik.enable=true" # set to true to expose the Monitoring & API
|
|
|
|
# middleware redirect
|
|
|
|
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
|
|
|
# global redirect to https
|
|
|
|
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
|
|
|
|
- "traefik.http.routers.http-catchall.entrypoints=web"
|
|
|
|
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
|
|
|
|
|
2017-07-09 17:46:14 +02:00
|
|
|
- "traefik.backend=proxy"
|
|
|
|
- "traefik.port=8080"
|
2019-12-01 01:16:21 +01:00
|
|
|
# Password middleware
|
|
|
|
#- "traefik.http.middlewares.auth.basicauth.users=zombi:zombibi0815"
|
|
|
|
# Dashboard
|
|
|
|
- "traefik.http.routers.dashboard.rule=host(`test.zom.bi`)"
|
|
|
|
- "traefik.http.routers.dashboard.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.dashboard.tls=true"
|
|
|
|
- "traefik.http.routers.dashboard.service=api@internal"
|
|
|
|
- "traefik.http.routers.dashboard.tls.certresolver=default"
|
|
|
|
- "traefik.http.routers.dashboard.tls.domains[0].main=zom.bi"
|
|
|
|
- "traefik.http.routers.dashboard.tls.domains[0].sans=conference.zom.bi,mumble.zom.bi,mx.zom.bi,user.zom.bi,xmpp.zom.bi,irc.zom.bi,api.zom.bi,autoconfig.zom.bi,blog.zom.bi,cloud.zom.bi,docker.zom.bi,download.zom.bi,gdpr.zom.bi,git.zom.bi,kanban.zom.bi,mail.zom.bi,music.zom.bi,org.zom.bi,ovpn.zom.bi,pad.zom.bi,push.zom.bi,static.zom.bi,stream.zom.bi,tube.zom.bi,upload.zom.bi,wiki.zom.bi,www.zom.bi,test.zom.bi"
|
|
|
|
#- "traefik.http.routers.dashboard.middlewares=auth"
|
|
|
|
|
|
|
|
- "traefik.http.services.dashboard.loadbalancer.server.port=8080"
|
2017-07-09 20:42:15 +02:00
|
|
|
networks:
|
|
|
|
- "web"
|
2017-07-09 17:46:14 +02:00
|
|
|
|
|
|
|
networks:
|
2017-07-09 19:24:09 +02:00
|
|
|
web:
|
2017-07-09 17:46:14 +02:00
|
|
|
driver: bridge
|