mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Replace nginx reverse proxy by traefik
This commit is contained in:
parent
fd30d66ffb
commit
cfaa48e02a
30 changed files with 271 additions and 161 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue