diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 9c0a1ffc..027832e5 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -108,7 +108,6 @@ class DockerController // set AIO_TOKEN $config['AIO_TOKEN'] = bin2hex(random_bytes(24)); $this->configurationManager->WriteConfig($config); - $this->configurationManager->SetIsContainerUpateAvailable(false); // Stop domaincheck since apache would not be able to start otherwise $this->StopDomaincheckContainer(); diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index f368a564..f772988b 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -30,16 +30,6 @@ class ConfigurationManager return $this->GetConfig()['AIO_TOKEN']; } - public function GetIsContainerUpateAvailable() : bool { - return isset($this->GetConfig()['isContainerUpateAvailable']) ? $this->GetConfig()['isContainerUpateAvailable'] : false; - } - - public function SetIsContainerUpateAvailable(bool $value) : void { - $config = $this->GetConfig(); - $config['isContainerUpateAvailable'] = $value; - $this->WriteConfig($config); - } - public function SetPassword(string $password) : void { $config = $this->GetConfig(); $config['username'] = 'admin'; diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 9622fe1c..9a424108 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -290,12 +290,8 @@ class DockerActionManager public function isAnyUpdateAvailable() { $id = 'nextcloud-aio-apache'; - if ($this->configurationManager->GetIsContainerUpateAvailable()) { - return true; - } if ($this->isContainerUpdateAvailable($id) !== "") { - $this->configurationManager->SetIsContainerUpateAvailable(true); return true; } else { return false; diff --git a/readme.md b/readme.md index 011cc1ce..17474e53 100644 --- a/readme.md +++ b/readme.md @@ -16,10 +16,21 @@ Included are: ## How to use this? 1. Install Docker on your Linux installations using: + ``` curl -fsSL get.docker.com | sudo sh ``` -2. Run the following command: +2. Make sure that the docker group has the correct groupid: + +``` +sudo groupmod -g 998 docker +``` +3. Make sure to pull the latest image: + +``` +sudo docker pull nextcloud/all-in-one:latest +``` +4. Run the following command in order to start the container: ``` sudo docker run -it \ @@ -32,13 +43,19 @@ sudo docker run -it \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ nextcloud/all-in-one:latest ``` -3. After the initial startup, you should be able to open the Nextcloud AIO Interface now on port 8080 of this server.
+5. After the initial startup, you should be able to open the Nextcloud AIO Interface now on port 8080 of this server.
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatially by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443 -Explanation of used ports: +### Which ports are mandatory to be open? +Only those (if you acces the Mastercontainer Interface internally via port 8080): +- `443/TCP` for the Nextcloud container +- `3478/TCP` and `3478/UPD` for the Talk container -- `80`: redirects to Nextcloud (HTTP) (is used for getting the certificate via ACME http-challenge for mastercontainer) -- `8080`: Master Container Interface with self-signed certificate (HTTPS) (works always, also if only access via IP-address is possible, e.g. `https://internal.ip.address:8080/`) -- `8443`: Master Container Interface with valid automatic certificate via Let's Encrypt! (HTTPS) (Only works if you access the container via a public domain, e.g. `https://public.domain.com:8443/` and not via IP-address.) +### Explanation of used ports: +- `8080/TCP`: Mastercontainer Interface with self-signed certificate (works always, also if only access via IP-address is possible, e.g. `https://internal.ip.address:8080/`) +- `80/TCP`: redirects to Nextcloud (is used for getting the certificate via ACME http-challenge for the Mastercontainer) +- `8443/TCP`: Mastercontainer Interface with valid certificate (only works if port 80 and 8443 are open and you point a domain to your server. It generates a valid certificate then automatically and access via e.g. `https://public.domain.com:8443/` is possible.) +- `443/TCP`: will be used by the Nextcloud container later on and needs to be open +- `3478/TCP` and `3478/UPD`: will be used by the Turnserver inside the Talk container and needs to be open