mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Add docs how to adjust MTU size of the docker network (#6779)
Signed-off-by: Lorenzo Moscati <lorenzo@moscati.page>
This commit is contained in:
parent
dd71fd3be3
commit
2e54b15544
2 changed files with 19 additions and 1 deletions
10
compose.yaml
10
compose.yaml
|
|
@ -7,7 +7,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work
|
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'!
|
- /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'!
|
||||||
network_mode: bridge # add to the same network as docker run would do
|
network_mode: bridge # This adds the container to the same network as docker run would do. Comment this line and uncomment the line below and the networks section at the end of the file if you want to define a custom MTU size for the docker network
|
||||||
|
# networks: ["nextcloud-aio"]
|
||||||
ports:
|
ports:
|
||||||
- 80:80 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
|
- 80:80 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
|
@ -69,3 +70,10 @@ volumes: # If you want to store the data on a different drive, see https://githu
|
||||||
# caddy_config:
|
# caddy_config:
|
||||||
# caddy_data:
|
# caddy_data:
|
||||||
# caddy_sites:
|
# caddy_sites:
|
||||||
|
|
||||||
|
# # Adjust the MTU size of the docker network. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-mtu-size-of-the-docker-network
|
||||||
|
# networks:
|
||||||
|
# nextcloud-aio:
|
||||||
|
# name: nextcloud-aio
|
||||||
|
# driver_opts:
|
||||||
|
# com.docker.network.driver.mtu: 1440
|
||||||
|
|
|
||||||
10
readme.md
10
readme.md
|
|
@ -171,6 +171,7 @@ If your firewall/router has port 80 and 8443 open/forwarded and you point a doma
|
||||||
- [How to skip the domain validation?](#how-to-skip-the-domain-validation)
|
- [How to skip the domain validation?](#how-to-skip-the-domain-validation)
|
||||||
- [How to resolve firewall problems with Fedora Linux, RHEL OS, CentOS, SUSE Linux and others?](#how-to-resolve-firewall-problems-with-fedora-linux-rhel-os-centos-suse-linux-and-others)
|
- [How to resolve firewall problems with Fedora Linux, RHEL OS, CentOS, SUSE Linux and others?](#how-to-resolve-firewall-problems-with-fedora-linux-rhel-os-centos-suse-linux-and-others)
|
||||||
- [What can I do to fix the internal or reserved ip-address error?](#what-can-i-do-to-fix-the-internal-or-reserved-ip-address-error)
|
- [What can I do to fix the internal or reserved ip-address error?](#what-can-i-do-to-fix-the-internal-or-reserved-ip-address-error)
|
||||||
|
- [How to adjust the MTU size of the docker network](#how-to-adjust-the-mtu-size-of-the-docker-network)
|
||||||
- [Infrastructure](#infrastructure)
|
- [Infrastructure](#infrastructure)
|
||||||
- [Which CPU architectures are supported?](#which-cpu-architectures-are-supported)
|
- [Which CPU architectures are supported?](#which-cpu-architectures-are-supported)
|
||||||
- [Disrecommended VPS providers](#disrecommended-vps-providers)
|
- [Disrecommended VPS providers](#disrecommended-vps-providers)
|
||||||
|
|
@ -353,6 +354,15 @@ See https://dev.to/ozorest/fedora-32-how-to-solve-docker-internal-network-issue-
|
||||||
### What can I do to fix the internal or reserved ip-address error?
|
### What can I do to fix the internal or reserved ip-address error?
|
||||||
If you get an error during the domain validation which states that your ip-address is an internal or reserved ip-address, you can fix this by first making sure that your domain indeed has the correct public ip-address that points to the server and then adding `--add-host yourdomain.com:<public-ip-address>` to the docker run command of the mastercontainer (but before the last line `ghcr.io/nextcloud-releases/all-in-one:latest`! If it was started already, you will need to stop the mastercontainer, remove it (no data will be lost) and recreate it using the docker run command that you initially used) which will allow the domain validation to work correctly. And so that you know: even if the `A` record of your domain should change over time, this is no problem since the mastercontainer will not make any attempt to access the chosen domain after the initial domain validation.
|
If you get an error during the domain validation which states that your ip-address is an internal or reserved ip-address, you can fix this by first making sure that your domain indeed has the correct public ip-address that points to the server and then adding `--add-host yourdomain.com:<public-ip-address>` to the docker run command of the mastercontainer (but before the last line `ghcr.io/nextcloud-releases/all-in-one:latest`! If it was started already, you will need to stop the mastercontainer, remove it (no data will be lost) and recreate it using the docker run command that you initially used) which will allow the domain validation to work correctly. And so that you know: even if the `A` record of your domain should change over time, this is no problem since the mastercontainer will not make any attempt to access the chosen domain after the initial domain validation.
|
||||||
|
|
||||||
|
### How to adjust the MTU size of the docker network
|
||||||
|
You can adjust the MTU size of the docker network by creating it beforehand with the custom MTU:
|
||||||
|
```
|
||||||
|
docker network create --driver bridge --opt com.docker.network.driver.mtu=1440 nextcloud-aio
|
||||||
|
```
|
||||||
|
When you open the AIO interface for the first time after you execute the `docker run` command, it will automatically connect to the `aio-nextcloud` network with the custom MTU. Keep in mind that if you previously started the mastercontainer without creating the network with the extra options, you will need to remove the old `aio-nextcloud` network and recreate it with the new configuration.
|
||||||
|
|
||||||
|
If you want to use docker compose, you can check out the comments in the `compose.yaml` file for more details.
|
||||||
|
|
||||||
## Infrastructure
|
## Infrastructure
|
||||||
|
|
||||||
### Which CPU architectures are supported?
|
### Which CPU architectures are supported?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue