## docker-compose.yml ```yaml version: '3' services: app: image: nextcloud ports: - 8080:80 volumes: - ./data:/var/www/html restart: always ``` ## config.php Nextcloud 的 config 檔放在`/var/www/html/config/config.php`,對應到本機就是 `./data/config/config.php`,在安裝完成之後,需要修改 `trusted_domains`、`overwriteprotocol`、`overwrite.cli.url` 這幾個參數,如下: ```php '/', 'memcache.local' => '\\OC\\Memcache\\APCu', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ), 'upgrade.disable-web' => true, 'instanceid' => 'ocwc2ntdj6io', 'passwordsalt' => '/uinYW42zbfuqxG5hVNIwS6vWeslUx', 'secret' => 'HBPMSEp6fazNbjhCbD+KpXd5C6QYhjMsc6RvU5BWOFchsPci', 'trusted_domains' => array ( 0 => 'nc.awin.one', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => 'sqlite3', 'version' => '28.0.2.5', 'overwriteprotocol' => 'https', 'overwrite.cli.url' => 'https://nc.awin.one', 'installed' => true, ); ```