mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46: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,22 +1,25 @@
|
|||
version: '2.2'
|
||||
|
||||
networks:
|
||||
proxy-tier:
|
||||
web:
|
||||
external:
|
||||
name: nginx-proxy
|
||||
name: web
|
||||
|
||||
services:
|
||||
rpg_wiki:
|
||||
image: 'bitnami/dokuwiki:0.20170219.201708232029-r7'
|
||||
expose:
|
||||
- 80
|
||||
environment:
|
||||
- VIRTUAL_HOST=rpg.banditlair.com
|
||||
- VIRTUAL_NETWORK=nginx-proxy
|
||||
- VIRTUAL_PORT=80
|
||||
volumes:
|
||||
- '/var/lib/wiki/rpg:/bitnami'
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
labels:
|
||||
- "traefik.backend=rpg_wiki"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.frontend.rule=Host:rpg.banditlair.com"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.default.protocol=http"
|
||||
networks:
|
||||
- proxy-tier
|
||||
- web
|
||||
restart: always
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
dependencies:
|
||||
- nginx-proxy-docker
|
||||
- traefik-proxy-docker
|
||||
Loading…
Add table
Add a link
Reference in a new issue