Skip to content

Instantly share code, notes, and snippets.

@giocomai
Created June 7, 2020 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giocomai/e6a2601da2fb6573cce51e246ffd579a to your computer and use it in GitHub Desktop.
Save giocomai/e6a2601da2fb6573cce51e246ffd579a to your computer and use it in GitHub Desktop.
Libreoffice Collabora with Traefik / Docker compose (only part with Libreoffice, with `network1` as external network)
libreoffice:
image: libreoffice/online:master
environment:
- "domain=nextcloud\\.example\\.com"
- "SLEEPFORDEBUGGER=0"
- "username=user"
- "password=actualgoodpassword"
- "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
networks:
network1:
cap_add:
- MKNOD
ports:
- "9980:9980"
restart:
unless-stopped
labels:
- "traefik.enable=true"
- "traefik.port=9980"
- "traefik.http.routers.libreoffice.rule=Host(`libreoffice.example.com`)"
- "traefik.http.routers.libreoffice.entrypoints=websecure"
- "traefik.http.routers.libreoffice.tls.certresolver=myhttpchallenge"
- "traefik.docker.network=network1"
@giocomai
Copy link
Author

giocomai commented Jun 7, 2020

ssl is disabled for Libreoffice, as Traefik is taking care of the certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment