Hi,
I have successfully installed Nextcloud 15 on Ubuntu server 16.04 from scratch.
It works fine since a few weeks but I think docker is better for maintenance and I would like to migrate my existing installation to docker.
As Iām new to docker I would get some advices before trying to achieve this. I have already created some singularity containers to help students and Iām quite familiar with Linux administration but I donāt know dockerā¦
I would like to migrate my whole installation to a docker container (Ubuntu, Apache, Php, MySQL and Nextcloud) but I donāt know where to start for my particular configā¦ even if I had read this : https://github.com/nextcloud/docker
Iāll try to give you as much informations as I can about my installation but feel free to ask more if something is missing.
First you have to know that there is no data physically on the server, everything is stored in non-Amazon s3 containers, including the primary storage.
My Linux distro is Ubuntu server 16.04 with the following packages :
Apache/2.4.37 (Ubuntu)
MySQL 5.7.25-0ubuntu0.16.04.2 - Ubuntu)
PHP 7.0.32-0ubuntu0.16.04.1
I use PHP-FPM
I use HTTPS2
I use a letās encrypt certificate for nextcloud.mydomain.tld
Here is my Nextcloud config (only the beginning but I can post the whole file if you think it could be relevant) :
{
"system": {
"objectstore": {
"class": "OC\\Files\\ObjectStore\\S3",
"arguments": {
"bucket": "nextcloud-primary",
"autocreate": true,
"key": "xxxxx",
"secret": "xxxxx",
"hostname": "storage.provider.tld",
"use_ssl": true,
"use_path_style": true
}
},
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.mydomain.tld"
],
"datadirectory": "\/var\/www\/nextcloud\/data",
"dbtype": "mysql",
"version": "15.0.2.0",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
And this is my apache vhost
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin me@mydomain.tld
ServerName nextcloud.mydomain.tld
DocumentRoot /var/www/nextcloud
# HTTP2
Protocols h2 h2c http/1.1
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header always set Referrer-Policy "no-referrer"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
SSLCertificateFile /etc/letsencrypt/live/nextcloud.mydomain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.mydomain.tld/privkey.pem
SSLEngine on
SSLProtocol all -TLSv1 -TLSv1.1 -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCompression off
SSLOptions +StrictRequire
SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
</VirtualHost>
</IfModule>
Any help would be appreciated.
Regards