添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
纯真的黑框眼镜  ·  java ...·  3 月前    · 
很酷的小熊猫  ·  eb macro language - ...·  4 月前    · 
玩命的水桶  ·  RuntimeError: memory ...·  7 月前    · 

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 [email protected]
                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

NextUser:

whole installation to a docker container (Ubuntu, Apache, Php, MySQL and Nextcloud)

ähm. all in one container? no. that’s possible. but not docker style.
each server/service in one container. web-server, php, database and nextcloud = 4 container. if one image (service) get’s an update it will be replaced and you don’t need to worry about the other services.

NextUser:

don’t know where to start

docker tutorial.
and then