Robin Thoni d9645aa127 fixed volume for new nextcloud installations | 5 years ago | |
---|---|---|
collabora | 5 years ago | |
nextcloud | 5 years ago | |
postgresql | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 5 years ago | |
docker-compose.yml | 5 years ago | |
env | 5 years ago | |
env_collabora | 5 years ago |
This docker-compose allows to easily run a Nextcloud instance with Collabora.
nextcloud.example.com
)collabora.example.com
)env
TZ
Europe/Paris
POSTGRES_PASSWORD
./data/postgres/data/...
) are created. Any further change won’t update it.NEXTCLOUD_ADMIN_PASSWORD
root
user. It will only be set when Nextcloud will install itself. Any further change won’t update it.env_collabora
domain
nextcloud\.example\.com
(Note the backslashes to escape the dots)password
docker-compose.yml
restart
lines to allow docker to automatically start the containers on reboot./etc/apache2/sites-available/nextcloud.example.com.conf
:
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName nextcloud.example.com
Redirect permanent / https://nextcloud.example.com/
</VirtualHost>
<VirtualHost *:443>
Include sites-available/nextcloud.example.com.include
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
</VirtualHost>
</IfModule>
<IfModule !mod_ssl.c>
<VirtualHost *:80>
Include sites-available/nextcloud.example.com.include
</VirtualHost>
</IfModule>
/etc/apache2/sites-available/nextcloud.example.com.include
:
ServerName nextcloud.example.com
ServerAlias nextcloud.example.com
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://127.0.0.1:35081/
ProxyPassReverse / http://127.0.0.1:35081/
/etc/apache2/sites-available/collabora.example.com.conf
:
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName collabora.example.com
Redirect permanent / https://collabora.example.com/
</VirtualHost>
<VirtualHost *:443>
Include sites-available/collabora.example.com.include
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
</VirtualHost>
</IfModule>
<IfModule !mod_ssl.c>
<VirtualHost *:80>
Include sites-available/collabora.example.com.include
</VirtualHost>
</IfModule>
/etc/apache2/sites-available/collabora.example.com.include
:
ServerName collabora.example.com
ServerAlias collabora.example.com
ProxyPreserveHost On
ProxyRequests off
AllowEncodedSlashes NoDecode
# Order of ProxyPass matters
ProxyPassMatch "/lool/(.*)/ws$" ws://127.0.0.1:35082/lool/$1/ws nocanon
ProxyPass /lool/adminws ws://127.0.0.1:35082/lool/adminws
ProxyPass / http://127.0.0.1:35082/
ProxyPassReverse / http://127.0.0.1:35082/
docker-compose up --build -d
root
accountaccount picture
/ Apps
/ Upper right search
iconCollabora Online
Download and enable
account picture
/ Settings
/ Lower left Collabora Online
https://collabora.example.com
)Apply
+
New Document