diff --git a/libreoffice/.env.sample b/libreoffice/.env.sample new file mode 100644 index 0000000..10b165a --- /dev/null +++ b/libreoffice/.env.sample @@ -0,0 +1,14 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=libreoffice +#UID=1024 +#GID=101 +#TZ=Europe/Amsterdam +#LIBREOFFICE_CONTAINER_NAME=LibreOffice +#LIBREOFFICE_TAG=latest +#LIBREOFFICE_PORT=8080 +#CUSTOM_USER= +#PASSWORD= +#TITLE=LibreOffice +#FM_HOME=/config \ No newline at end of file diff --git a/libreoffice/compose.yml b/libreoffice/compose.yml new file mode 100644 index 0000000..dcbb46e --- /dev/null +++ b/libreoffice/compose.yml @@ -0,0 +1,21 @@ +services: + # LibreOffice + libreoffice: + container_name: ${LIBREOFFICE_CONTAINER_NAME:-LibreOffice} + image: linuxserver/libreoffice:${LIBREOFFICE_TAG:-latest} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: curl -f http://localhost:${LIBREOFFICE_PORT:-3000}/ || exit 1 + environment: + PUID: ${UID:-1024} + PGID: ${GID:-101} + TZ: ${TZ:-Europe/Amsterdam} + CUSTOM_PORT: ${LIBREOFFICE_PORT:-3000} + CUSTOM_USER: ${LIBREOFFICE_CUSTOM_USER:-} + PASSWORD: ${LIBREOFFICE_PASSWORD:-} + TITLE: ${LIBREOFFICE_TITLE:-LibreOffice} + FM_HOME: ${LIBREOFFICE_FM_HOME:-/config} + ports: + - ${LIBREOFFICE_PORT:-3000}:${LIBREOFFICE_PORT:-3000} + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-libreoffice}/${LIBREOFFICE_CONTAINER_NAME:-LibreOffice}/config:/config \ No newline at end of file