Replace nginx reverse proxy by traefik

This commit is contained in:
Paul-Henri Froidmont 2018-04-25 15:26:28 +02:00
parent fd30d66ffb
commit cfaa48e02a
30 changed files with 271 additions and 161 deletions

View file

@ -1,21 +1,24 @@
version: '2.2'
networks:
proxy-tier:
web:
external:
name: nginx-proxy
name: web
services:
arch-mirror:
image: nginx:latest
expose:
- 80
environment:
- VIRTUAL_HOST=arch.banditlair.com
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
labels:
- "traefik.backend=arch-mirror"
- "traefik.docker.network=web"
- "traefik.frontend.rule=Host:arch.banditlair.com"
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.default.protocol=http"
volumes:
- /srv/repo:/usr/share/nginx/html:ro
networks:
- proxy-tier
- web
restart: always

View file

@ -1,2 +1,2 @@
dependencies:
- nginx-proxy-docker
- traefik-proxy-docker