curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt install docker.io docker-compose-plugin
sudo usermod -aG docker jonathan
services: nextcloud-aio-mastercontainer: image: nextcloud/all-in-one:latest init: true restart: always container_name: nextcloud-aio-mastercontainer volumes: - nextcloud_aio_mastercontainer:/mnt/docker-aio-config - /var/run/docker.sock:/var/run/docker.sock:ro ports: - 8080:8080 environment: - SKIP_DOMAIN_VALIDATION=true - NEXTCLOUD_DATADIR=/opt/stacks/nextcloud/ncdata - NEXTCLOUD_MOUNT=/mnt/ volumes: nextcloud_aio_mastercontainer: name: nextcloud_aio_mastercontainer
sudo docker exec nextcloud-aio-mastercontainer grep password
cd /var/www/nextcloud vi config/config.php
: 'trusted_domains' => array ( 0 => 'localhost', 1 => 'nextcloud.ichiayi.com', 2 => '192.168.11.24', ), 'datadirectory' => '/var/www/nextcloud-data', 'dbtype' => 'mysql', :
apt install php-bcmath
systemctl restart apache2
vi /var/www/nextcloud/config/config.php
: : 'default_phone_region' => 'TWN', );
apt install sudo sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin
apt install certbot python-certbot-apache certbot -d nextcloud.ichiayi.com --manual --preferred-challenges dns certonly
_acme-challenge.nextcloud.ichiayi.com yWQSKEASom2ngmRnohuDjVGJPA08d1DfZovl-JKnk-U
vi /etc/apache2/sites-enabled/nextcloud.conf
: <VirtualHost *:443> SSLEngine on ServerAdmin webmaster@localhost DocumentRoot /var/www/nextcloud/ SSLCertificateFile /etc/letsencrypt/live/nextcloud.ichiayi.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.ichiayi.com/privkey.pem <IfModule mod_headers.c> :
vi /var/www/nextcloud/config/config.php
: 'trusted_domains' => array ( 0 => 'nextcloud.ichiayi.com', 1 => '192.168.11.24', ), 'datadirectory' => '/var/www/nextcloud-data', 'dbtype' => 'mysql', :
service apache2 restart