From 84333607e8cc2f888f31ae2a69d88e132bdc96cc Mon Sep 17 00:00:00 2001 From: szaimen Date: Fri, 26 Aug 2022 12:21:56 +0200 Subject: [PATCH] use long syntax for port publishing Signed-off-by: szaimen --- develop.md | 6 +++--- multiple-instances.md | 2 +- readme.md | 18 +++++++++--------- reverse-proxy.md | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/develop.md b/develop.md index cf767f3f..846f9d23 100644 --- a/develop.md +++ b/develop.md @@ -4,9 +4,9 @@ If you want to switch to the develop channel, you simply stop and delete the mas sudo docker run -it \ --name nextcloud-aio-mastercontainer \ --restart always \ --p 80:80 \ --p 8080:8080 \ --p 8443:8443 \ +--publish 80:80 \ +--publish 8080:8080 \ +--publish 8443:8443 \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ nextcloud/all-in-one:develop diff --git a/multiple-instances.md b/multiple-instances.md index 75ac9d21..b9f5f804 100644 --- a/multiple-instances.md +++ b/multiple-instances.md @@ -8,7 +8,7 @@ Below is described more in detail how the the second way works. ## Run multiple AIO instances on the same server with docker rootless 1. Create as many linux users as you need first. The easiest way is to use `sudo adduser` and follow the setup for that. Make sure to create a strong unique password for each of them and write it down! 1. Log in as each of the users e.g. by opening a new SSH connection and install docker rootless for each of them by following step 0-4 of the [docker rootless documentation](./docker-rootless.md). -1. Then install AIO in reverse proxy mode by using the command that is descriebed in step 2 and 3 of the [reverse proxy documentation](./reverse-proxy.md) but use a different `APACHE_PORT` and [`TALK_PORT`](https://github.com/nextcloud/all-in-one#how-to-adjust-the-talk-port) for each instance as otherwise it will bug out. Also make sure to adjust the docker socket and `DOCKER_SOCKET_PATH` correctly for each of them by following step 6 of the [docker rootless documentation](./docker-rootless.md). Additionally, modify `-p 8080:8080` to a different port for each container, e.g. `8081:8080` as otherwise it will not work.
+1. Then install AIO in reverse proxy mode by using the command that is descriebed in step 2 and 3 of the [reverse proxy documentation](./reverse-proxy.md) but use a different `APACHE_PORT` and [`TALK_PORT`](https://github.com/nextcloud/all-in-one#how-to-adjust-the-talk-port) for each instance as otherwise it will bug out. Also make sure to adjust the docker socket and `DOCKER_SOCKET_PATH` correctly for each of them by following step 6 of the [docker rootless documentation](./docker-rootless.md). Additionally, modify `--publish 8080:8080` to a different port for each container, e.g. `8081:8080` as otherwise it will not work.
**⚠️ Please note:** If you want to adjust the `NEXTCLOUD_DATADIR`, make sure to apply the correct permissions to the chosen path as documented at the bottom of the [docker rootless documentation](./docker-rootless.md). Also for the built-in backup to work, the target path needs to have the correct permissions as documented there, too. 1. Now install your webserver of choice on the host system. It is recommended to use caddy for this as it is by far the easiest solution. You can do so by following https://caddyserver.com/docs/install#debian-ubuntu-raspbian or below. (It needs to be installed directly on the host or on a different server in the same network). 1. Next create your Caddyfile with multiple entries and domains for the different instances like described in step 1 of the [reverse proxy documentation](./reverse-proxy.md). Obviously each domain needs to point correctly to the chosen `APACHE_PORT` that you've configured before. Then start Caddy which should automatically get the needed certificates for you if your domains are configured correctly and ports 80 and 443 are forwarded to your server. diff --git a/readme.md b/readme.md index 6e4bfdd7..e7ef8770 100644 --- a/readme.md +++ b/readme.md @@ -25,9 +25,9 @@ The following instructions are especially meant for Linux. For macOS see [this]( sudo docker run -it \ --name nextcloud-aio-mastercontainer \ --restart always \ - -p 80:80 \ - -p 8080:8080 \ - -p 8443:8443 \ + --publish 80:80 \ + --publish 8080:8080 \ + --publish 8443:8443 \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ nextcloud/all-in-one:latest @@ -40,9 +40,9 @@ The following instructions are especially meant for Linux. For macOS see [this]( sudo docker run -it \ --name nextcloud-aio-mastercontainer \ --restart always \ - -p 80:80 \ - -p 8080:8080 \ - -p 8443:8443 \ + --publish 80:80 \ + --publish 8080:8080 \ + --publish 8443:8443 \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ nextcloud/all-in-one:latest-arm64 @@ -85,9 +85,9 @@ On Windows, the following command should work in the command prompt after you in docker run -it ^ --name nextcloud-aio-mastercontainer ^ --restart always ^ --p 80:80 ^ --p 8080:8080 ^ --p 8443:8443 ^ +--publish 80:80 ^ +--publish 8080:8080 ^ +--publish 8443:8443 ^ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config ^ --volume //var/run/docker.sock:/var/run/docker.sock:ro ^ nextcloud/all-in-one:latest diff --git a/reverse-proxy.md b/reverse-proxy.md index bcea0033..bdaae659 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -277,7 +277,7 @@ After adjusting your reverse proxy config, use the following command to start AI sudo docker run -it \ --name nextcloud-aio-mastercontainer \ --restart always \ --p 8080:8080 \ +--publish 8080:8080 \ -e APACHE_PORT=11000 \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ @@ -295,7 +295,7 @@ You should also think about limiting the apache container to listen only on loca sudo docker run -it \ --name nextcloud-aio-mastercontainer \ --restart always \ --p 8080:8080 \ +--publish 8080:8080 \ -e APACHE_PORT=11000 \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ @@ -314,7 +314,7 @@ On macOS see https://github.com/nextcloud/all-in-one#how-to-run-aio-on-macos. docker run -it ^ --name nextcloud-aio-mastercontainer ^ --restart always ^ --p 8080:8080 ^ +--publish 8080:8080 ^ -e APACHE_PORT=11000 ^ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config ^ --volume //var/run/docker.sock:/var/run/docker.sock:ro ^