Split examples for nginx-proxy and traefik

This commit is contained in:
Dave Conroy 2019-07-16 10:59:32 -07:00
parent f7fe09f912
commit 21f2911eea
3 changed files with 47 additions and 2 deletions

View file

@ -12,7 +12,6 @@ This will build a container for [LibreOffice Online](https://libreoffice.org/) f
* Configurable Concurrent User and Document Limit (set to generarous values by default)
* Set features to support autogeneration of TLS certificates/activate reverse proxy support, others..
*
* Zabbix Monitoring of Active Documents, Users, Memory Consumed
[Changelog](CHANGELOG.md)
@ -78,6 +77,8 @@ The following directories should be mapped for persistent storage in order to ut
|-----------|-------------|
| `/var/log/loolwsd` | Log files
| `/assets/custom` | If you want to update the theme of LibreOffice online, dropping files in here will overwrite /opt/lool/share on startup |
| `/etc/loolwsd/certs` | (Optional) If you would like to use your own certificates, map this volume and set appropriate variables |
### Environment Variables
Along with the Environment Variables from the [Base image](https://hub.docker.com/r/tiredofit/debian), below is the complete list of available options that can be used to customize your installation.
@ -92,7 +93,7 @@ Along with the Environment Variables from the [Base image](https://hub.docker.co
| `ENABLE_TLS` | Enable TLS - Default: `TRUE`
| `ENABLE_TLS_CERT_GENERATE` | Enable Self Signed Certificate Generation (Default: `TRUE`)
| `ENABLE_TLS_REVERSE_PROXY` | If using a Reverse SSL terminating proxy in front of this container (Default: `FALSE`)
| `TLS_CERT_PATH` | TLS certificates path - Default: `/etc/loolwsd/certs`
| `TLS_CERT_PATH` | TLS certificates path - Default: `/etc/loolwsd/certs` |
| `TLS_CA_FILENAME` | TLS CA Cert filename with extension - Default: `ca-chain-cert.pem` |
| `TLS_CERT_FILENAME` | TLS Certificate filename with extension - Default: `cert.pem` |
|`TLS_KEY_FILENAME` | TLS Private Key filename with extension - Default: `key.pem` |

View file

@ -0,0 +1,44 @@
version: '3.7'
services:
libreoffice-online-app:
image: tiredofit/libreoffice-online
container_name: libreoffice-online-app
hostname: libreoffice
domainname: example.com
expose:
- 9980
cap_add:
- MKNOD
- NET_ADMIN
privileged: true
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:libreoffice.example.com
- traefik.port=9980
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=libreoffice-online-app
volumes:
- ./logs:/var/log/lool
environment:
- ZABBIX_HOSTNAME=libreoffice-online-app
- ADMIN_USER=admin
- ADMIN_PASS=libreoffice
- ALLOWED_HOSTS=^(.*)\.example\.org
- ENABLE_TLS=FALSE
- ENABLE_TLS_REVERSE_PROXY=TRUE
networks:
- proxy
- services
restart: always
networks:
proxy:
external: true
services:
external: true