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,9 +1,9 @@
|
|||
version: '3'
|
||||
|
||||
networks:
|
||||
proxy-tier:
|
||||
web:
|
||||
external:
|
||||
name: nginx-proxy
|
||||
name: web
|
||||
|
||||
services:
|
||||
web:
|
||||
|
|
@ -11,15 +11,18 @@ services:
|
|||
volumes:
|
||||
- /var/lib/nextcloud:/var/www/html:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- VIRTUAL_HOST=${CLOUD_DOMAIN}
|
||||
- VIRTUAL_NETWORK=nginx-proxy
|
||||
- VIRTUAL_PORT=80
|
||||
labels:
|
||||
- "traefik.backend=nextcloud"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.frontend.rule=Host:cloud.banditlair.com"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.default.protocol=http"
|
||||
depends_on:
|
||||
- app
|
||||
# - collabora
|
||||
networks:
|
||||
- proxy-tier
|
||||
- web
|
||||
- default
|
||||
restart: always
|
||||
|
||||
|
|
@ -65,17 +68,18 @@ services:
|
|||
tty: true
|
||||
expose:
|
||||
- '80'
|
||||
environment:
|
||||
- VIRTUAL_HOST=office.banditlair.com
|
||||
- VIRTUAL_NETWORK=nginx-proxy
|
||||
- VIRTUAL_PORT=80
|
||||
- LETSENCRYPT_HOST=office.banditlair.com
|
||||
- LETSENCRYPT_EMAIL=letsencrypt.account@banditlair.com
|
||||
labels:
|
||||
- "traefik.backend=onlyoffice"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.frontend.rule=Host:office.banditlair.com"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.default.protocol=http"
|
||||
volumes:
|
||||
- /var/lib/onlyoffice:/var/www/onlyoffice/Data
|
||||
- /var/log/onlyoffice:/var/log/onlyoffice
|
||||
networks:
|
||||
- proxy-tier
|
||||
- web
|
||||
- default
|
||||
restart: always
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue