mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-11 00:55:19 +08:00
update the ipv6 documentation
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
ef1e7c28f6
commit
46c7fed2be
4 changed files with 9 additions and 42 deletions
13
compose.yaml
13
compose.yaml
|
@ -30,8 +30,6 @@ services:
|
||||||
# NEXTCLOUD_KEEP_DISABLED_APPS: false # Setting this to true will keep Nextcloud apps that are disabled in the AIO interface and not uninstall them if they should be installed. See https://github.com/nextcloud/all-in-one#how-to-keep-disabled-apps
|
# NEXTCLOUD_KEEP_DISABLED_APPS: false # Setting this to true will keep Nextcloud apps that are disabled in the AIO interface and not uninstall them if they should be installed. See https://github.com/nextcloud/all-in-one#how-to-keep-disabled-apps
|
||||||
# TALK_PORT: 3478 # This allows to adjust the port that the talk container is using. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-talk-port
|
# TALK_PORT: 3478 # This allows to adjust the port that the talk container is using. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-talk-port
|
||||||
# WATCHTOWER_DOCKER_SOCKET_PATH: /var/run/docker.sock # Needs to be specified if the docker socket on the host is not located in the default '/var/run/docker.sock'. Otherwise mastercontainer updates will fail. For macos it needs to be '/var/run/docker.sock'
|
# WATCHTOWER_DOCKER_SOCKET_PATH: /var/run/docker.sock # Needs to be specified if the docker socket on the host is not located in the default '/var/run/docker.sock'. Otherwise mastercontainer updates will fail. For macos it needs to be '/var/run/docker.sock'
|
||||||
# networks: # Is needed when you want to create the nextcloud-aio network with ipv6-support using this file, see the network config at the bottom of the file
|
|
||||||
# - nextcloud-aio # Is needed when you want to create the nextcloud-aio network with ipv6-support using this file, see the network config at the bottom of the file
|
|
||||||
# security_opt: ["label:disable"] # Is needed when using SELinux
|
# security_opt: ["label:disable"] # Is needed when using SELinux
|
||||||
|
|
||||||
# # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
|
# # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
|
||||||
|
@ -52,14 +50,3 @@ volumes: # If you want to store the data on a different drive, see https://githu
|
||||||
nextcloud_aio_mastercontainer:
|
nextcloud_aio_mastercontainer:
|
||||||
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work
|
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work
|
||||||
|
|
||||||
# # Optional: If you need ipv6, follow step 1 and 2 of https://github.com/nextcloud/all-in-one/blob/main/docker-ipv6-support.md first and then uncomment the below config in order to activate ipv6 for the internal nextcloud-aio network.
|
|
||||||
# # Please make sure to uncomment also the networking lines of the mastercontainer above in order to actually create the network with docker-compose
|
|
||||||
# networks:
|
|
||||||
# nextcloud-aio:
|
|
||||||
# name: nextcloud-aio # This line is not allowed to be changed as otherwise the created network will not be used by the other containers of AIO
|
|
||||||
# driver: bridge
|
|
||||||
# enable_ipv6: true
|
|
||||||
# ipam:
|
|
||||||
# driver: default
|
|
||||||
# config:
|
|
||||||
# - subnet: fd12:3456:789a:2::/64 # IPv6 subnet to use
|
|
||||||
|
|
|
@ -5,14 +5,12 @@ Before enabling IPv6-Support for Docker, please note that there are still some u
|
||||||
Now that this was mentioned, see the instructions below on how to enable IPv6 for Docker.
|
Now that this was mentioned, see the instructions below on how to enable IPv6 for Docker.
|
||||||
|
|
||||||
## Docker on Linux and Docker-rootless
|
## Docker on Linux and Docker-rootless
|
||||||
1. Edit `/etc/docker/daemon.json` (or `~/.config/docker/daemon.json` in case of docker-rootless), set the `ipv6` key to `true` and the `fixed-cidr-v6` key to your IPv6 subnet. In this example we are setting it to `fd12:3456:789a:1::/64`. Additionally set `experimental` to `true` and `ip6tables` to `true` as well. If you are using mailcow and enabled IPv6 with the update.sh, you can keep their daemon.json, it will work too.
|
First of all upgrade your docker installation to v27.0.1 or higher.
|
||||||
|
1. Then edit `/etc/docker/daemon.json` (or `~/.config/docker/daemon.json` in case of docker-rootless), add the below json:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"ipv6": true,
|
"default-network-opts": {"bridge":{"com.docker.network.enable_ipv6":"true"}}
|
||||||
"fixed-cidr-v6": "fd12:3456:789a:1::/64",
|
|
||||||
"experimental": true,
|
|
||||||
"ip6tables": true
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,22 +21,20 @@ Now that this was mentioned, see the instructions below on how to enable IPv6 fo
|
||||||
```console
|
```console
|
||||||
sudo systemctl restart docker
|
sudo systemctl restart docker
|
||||||
```
|
```
|
||||||
3. Make sure that ipv6 is enabled for the internal `nextcloud-aio` network by running `sudo docker network inspect nextcloud-aio | grep EnableIPv6`. On a new instance, this command should return that it did not find a network with this name. Then you can run `sudo docker network create --subnet="fd12:3456:789a:2::/64" --driver bridge --ipv6 nextcloud-aio` in order to create the network with ipv6-support. However if it finds the network and its value `EnableIPv6` is set to false, make sure to follow https://github.com/nextcloud/all-in-one/discussions/2045 in order to recreate the network and enable ipv6 for it.
|
3. Make sure that ipv6 is enabled for the internal `nextcloud-aio` network by running `sudo docker network inspect nextcloud-aio | grep EnableIPv6`. On a new instance, this command should return that it did not find a network with this name. Then you can run `sudo docker network create nextcloud-aio` in order to create the network with ipv6-support. However if it finds the network and its value `EnableIPv6` is set to false, make sure to follow https://github.com/nextcloud/all-in-one/discussions/2045 in order to recreate the network and enable ipv6 for it.
|
||||||
|
|
||||||
## Docker Desktop (Windows and macOS)
|
## Docker Desktop (Windows and macOS)
|
||||||
On Windows and macOS which use Docker Desktop, you need to go into the settings, and select `Docker Engine`. There you should see the currently used daemon.json file.
|
First of all upgrade your docker desktop installation to v4.32.0 or higher.
|
||||||
|
Then, on Windows and macOS which use Docker Desktop, you need to go into the settings, and select `Docker Engine`. There you should see the currently used daemon.json file.
|
||||||
|
|
||||||
1. You need to now adjust this json file by setting the `ipv6` key to `true` and the `fixed-cidr-v6` key to your IPv6 subnet. In this example we are setting it to `fd12:3456:789a:1::/64`. Additionally set `experimental` to `true` and `ip6tables` to `true` as well.
|
1. You need to now adjust this json file:
|
||||||
|
|
||||||
```
|
```
|
||||||
"ipv6": true,
|
"default-network-opts": {"bridge":{"com.docker.network.enable_ipv6":"true"}}
|
||||||
"fixed-cidr-v6": "fd12:3456:789a:1::/64",
|
|
||||||
"experimental": true,
|
|
||||||
"ip6tables": true
|
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Add these values to the json and make sure to keep the other currently values and that you don't see `Unexpected token in JSON at position ...` before attempting to restart by clicking on `Apply & restart`.
|
2. Add these values to the json and make sure to keep the other currently values and that you don't see `Unexpected token in JSON at position ...` before attempting to restart by clicking on `Apply & restart`.
|
||||||
3. Make sure that ipv6 is enabled for the internal `nextcloud-aio` network by running `docker network inspect nextcloud-aio`. On a new instance, this command should return that it did not find a network with this name. Then you can run `docker network create --subnet="fd12:3456:789a:2::/64" --driver bridge --ipv6 nextcloud-aio` in order to create the network with ipv6-support. However if it finds the network and its value `EnableIPv6` is set to false, make sure to follow https://github.com/nextcloud/all-in-one/discussions/2045 in order to recreate the network and enable ipv6 for it.
|
3. Make sure that ipv6 is enabled for the internal `nextcloud-aio` network by running `sudo docker network inspect nextcloud-aio | grep EnableIPv6`. On a new instance, this command should return that it did not find a network with this name. Then you can run `sudo docker network create nextcloud-aio` in order to create the network with ipv6-support. However if it finds the network and its value `EnableIPv6` is set to false, make sure to follow https://github.com/nextcloud/all-in-one/discussions/2045 in order to recreate the network and enable ipv6 for it.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -388,13 +388,5 @@ volumes:
|
||||||
nextcloud_aio_nextcloud_data:
|
nextcloud_aio_nextcloud_data:
|
||||||
name: nextcloud_aio_nextcloud_data
|
name: nextcloud_aio_nextcloud_data
|
||||||
|
|
||||||
# Inspired by https://github.com/mailcow/mailcow-dockerized/blob/master/docker-compose.yml
|
|
||||||
networks:
|
networks:
|
||||||
nextcloud-aio:
|
nextcloud-aio:
|
||||||
name: nextcloud-aio
|
|
||||||
driver: bridge
|
|
||||||
enable_ipv6: true
|
|
||||||
ipam:
|
|
||||||
driver: default
|
|
||||||
config:
|
|
||||||
- subnet: ${IPV6_NETWORK}
|
|
||||||
|
|
|
@ -139,16 +139,8 @@ done
|
||||||
|
|
||||||
cat << NETWORK >> containers.yml
|
cat << NETWORK >> containers.yml
|
||||||
|
|
||||||
# Inspired by https://github.com/mailcow/mailcow-dockerized/blob/master/docker-compose.yml
|
|
||||||
networks:
|
networks:
|
||||||
nextcloud-aio:
|
nextcloud-aio:
|
||||||
name: nextcloud-aio
|
|
||||||
driver: bridge
|
|
||||||
enable_ipv6: true
|
|
||||||
ipam:
|
|
||||||
driver: default
|
|
||||||
config:
|
|
||||||
- subnet: \${IPV6_NETWORK}
|
|
||||||
NETWORK
|
NETWORK
|
||||||
|
|
||||||
cat containers.yml > latest.yml
|
cat containers.yml > latest.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue