Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OpenCloud goes LXC Container

Featured Replies

Der user @Bigbrother hat mich gefragt, ob ich eine Anleitung schreiben kann, wie ich OpenCloud in einem LXC Container installiert habe.
Hier nun eine Kurze Anleitung für alle zugängig.

Bitte Beachtet das es die Normale Version und nicht die Full Version ist. Bei bedarf den github der Full Version Clonen und die .env anpassen.

Danke an angie für die Nginx Proxy Manager Config.


Voraussetzungen:

- Unraid

- LXC Plugin, danke an @ich777

- Docker + Docker Compose

- Nginx Proxy Manager oder vergleichbarer Reverse Proxy

- 3 Domains: Ihr benötigt 3 Domains oder 3 DynDNS. OpenCloud setzt voraus, dass diese erreichbar sind.
Beispiele: OpenCloud.meinedomain.de, Collabora.meinedomain.de, wopiserver.meinedomain.de



Anleitung:

1. Im LXC Plugin Tab, Add Container / Debian Distribution / in meinem Fall hab ich Bookworm, sollte aber auch mit Trixie gehen.

2. Distribution updaten und Abhängigkeiten installieren
apt update && apt upgrade -y && apt install git sudo -y

3. Installation von Docker und Docker Compose

sudo apt-get update

sudo apt-get install ca-certificates curl

sudo install -m 0755 -d /etc/apt/keyrings

sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc

sudo chmod a+r /etc/apt/keyrings/docker.asc


# Add the repository to Apt sources:

echo \

"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \

$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \

sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y


## Test Optional
sudo docker run hello-world


4. OpenCloud Ordner erstellen und Rechte Vergeben

mkdir -p /opt/opencloud/config

mkdir -p /opt/opencloud/data

chown -R 1000:1000 /opt/opencloud/config/

chown -R 1000:1000 /opt/opencloud/data/


5. Git Clonen

cd /opt/opencloud

git clone https://github.com/opencloud-eu/opencloud-compose.git

cd opencloud-compose

#9. .env Kopieren und bearbeiten
cp .env.example .env

nano .env

# Folgende Werte müsst Ihr wie folgt abändern

# INSECURE=false

COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml #raute entfernen

OC_DOMAIN=OpenCloud.meinedomain.de

INITIAL_ADMIN_PASSWORD=MeinSicheresPasswort123!


LOG_PRETTY=true # Gefällt mir, endlich für den Guybrush lesbare logs

OC_CONFIG_DIR=/opt/opencloud/config #Raute entfernen und o.a. Verzeichnis ändern

OC_DATA_DIR=/opt/opencloud/data # Raute entfernen und o.a. Verzeichnis ändern

COLLABORA_DOMAIN=Collabora.meinedomain.de

WOPISERVER_DOMAIN=wopiserver.meinedomain.de

COLLABORA_ADMIN_PASSWORD=MeinSicheresPasswort123!

COLLABORA_SSL_ENABLE=false

COLLABORA_SSL_VERIFICATION=true

10. Nun schaut ihr im LXC Menu wie die IP Adresse eures LXC Containers heißt und Passt den Revers Proxy an (NPM)

### Beispiel: LXC Container hat die IP 192.168.178.100 und Nginx Proxy Manager Config: ###

###OpenCloud Domain ###

Domain Name: OpenCloud.meinedomain.de
Scheme: http

IP: 192.168.178.100

Port: 9200

Websocket Support: On

Force SSL HTTP/2 Support

### Collabora Domain ###

Domain Name: Collabora.meinedomain.de
Scheme: http

IP: 192.168.178.100

Port: 9980

Websocket Support: On

Force SSL HTTP/2 Support


### Advanced Config: ###

# static files

location ^~ /browser {

proxy_pass http://$server:$port;

proxy_set_header Host $host;

}

# WOPI discovery URL

location ^~ /hosting/discovery {

proxy_pass http://$server:$port;

proxy_set_header Host $host;

}

# Capabilities

location ^~ /hosting/capabilities {

proxy_pass http://$server:$port;

proxy_set_header Host $host;

}

# main websocket

location ~ ^/cool/(.*)/ws$ {

proxy_pass http://$server:$port;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_set_header Host $host;

proxy_read_timeout 36000s;

}

# download, presentation and image upload

location ~ ^/(c|l)ool {

proxy_pass http://$server:$port;

proxy_set_header Host $host;

}

# Admin Console websocket

location ^~ /cool/adminws {

proxy_pass http://$server:$port;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_set_header Host $host;

proxy_read_timeout 36000s;

}

### Wopi Server Domain ###
Domain Name: wopiserver.meinedomain.de
Scheme: http

IP: 192.168.178.100

Port: 9300

Websocket Support: On

Force SSL HTTP/2 Support

10. Container ausrollen mit

docker compose up -d

11. Nun habt Ihr Fertig. OpenCloud sollte funktionieren.
Berichtet ob es bei euch geklappt hat oder ich etwas vergessen habe.

Liebe Grüße



Edited by guybrush2012

  • 1 month later...

Thanks for the writing... If I want to use any CA appstore route then any recommendation?

Ich erhalte den folgenden Fehler:

/# echo \

"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \

$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \

> sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

bash: deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian

bookworm stable: No such file or directory

Muss da ggf. der Verzeichnispfad angepasst werden, aber welches ist erforderlich?

image.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.