Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Submission: ONLYOFFICE Document Server for Nextcloud #1288

Merged
merged 7 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
Empty file.
Empty file.
33 changes: 33 additions & 0 deletions onlyoffice-nextcloud/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: '3.9'

Check notice on line 1 in onlyoffice-nextcloud/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "web"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.

Check notice on line 1 in onlyoffice-nextcloud/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "documentserver"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.
services:
app_proxy:
environment:
APP_HOST: onlyoffice-nextcloud_web_1
APP_PORT: 3000

web:
image: a4004/onlyoffice-nextcloud-web:1.0.4@sha256:774bd9bda641e6be49286921637840efba050fdfd022934dfd9ee9b6ec8d0a63
restart: on-failure
environment:
- DOCS_ADDRESS=http://$DEVICE_DOMAIN_NAME:$DOCSERVER_PORT
- DOCS_INTERNAL_ADDRESS=http://onlyoffice-nextcloud_documentserver_1
- NEXTCLOUD_INTERNAL_ADDRESS=http://nextcloud_web_1
- NEXTCLOUD_WEB_URL=http://$DEVICE_DOMAIN_NAME:$APP_NEXTCLOUD_PORT

documentserver:
image: onlyoffice/documentserver:8.1@sha256:9b74cb0e05580bced87f9af69de68d5f4c9e5b3340448ddc94333f5f7f4eba85
restart: on-failure
stop_grace_period: 1m
ports:

Check notice on line 21 in onlyoffice-nextcloud/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

External port mapping "${DOCSERVER_PORT}:80"

Port mappings may be unnecessary for the app to function correctly. Docker's internal DNS resolves container names to IP addresses within the same network. External access to the web interface is handled by the app_proxy container. Port mappings are only needed if external access is required to a port not proxied by the app_proxy, or if an app needs to expose multiple ports for its functionality (e.g., DHCP, DNS, P2P, etc.).
- "${DOCSERVER_PORT}:80"
environment:
- JWT_ENABLED=false
- ONLYOFFICE_HTTPS_HSTS_ENABLED=false
- USE_UNAUTHORIZED_STORAGE=true
- ALLOW_PRIVATE_IP_ADDRESS=true
- ALLOW_META_IP_ADDRESS=true
volumes:
- ${APP_DATA_DIR}/data/logs:/var/log/onlyoffice
- ${APP_DATA_DIR}/data/certs:/var/www/onlyoffice/Data
- ${APP_DATA_DIR}/data/cache:/var/lib/onlyoffice
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql
3 changes: 3 additions & 0 deletions onlyoffice-nextcloud/exports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

export DOCSERVER_PORT=5672
30 changes: 30 additions & 0 deletions onlyoffice-nextcloud/umbrel-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
manifestVersion: 1
id: onlyoffice-nextcloud
category: files
name: ONLYOFFICE Docs
version: "8.1"
tagline: Online office for Nextcloud
description: >-
An online office suite for Nextcloud that enables you to create, edit and collaborate on text documents, spreadsheets and presentations in real time.


Simply install ONLYOFFICE Docs and follow the in-app instructions to connect it to Nextcloud running on your Umbrel.
releaseNotes: ""
developer: Ascensio System SIA
website: https://www.onlyoffice.com/
dependencies:
- nextcloud
repo: https://github.com/ONLYOFFICE/DocumentServer
support: https://forum.onlyoffice.com/
port: 3014
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
- 4.jpg
- 5.jpg
path: ""
defaultUsername: ""
defaultPassword: ""
submitter: a4004
submission: https://github.com/getumbrel/umbrel-apps/pull/1288