-
Hi, I want to run my Nextcloud AIO container with a separate IP, so that the hosts IP is free for other services. For this I thought to use a docker network with the ipvlan driver. Two questions:
Bonus question: I can't reach the container from my host via it's IPv6 interface and vice versa, it says no route. Connecting via the IPv4 address or from another client in my network via any address works perfectly fine. It seems that the neighbour announcements of host/container don't reach each other. If someone happens to know how to resolve this I'm happy to hear it. Thank you so much! My docker compose file (adapted from the docker compose file in the repository, IPv6 address changed): services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed as otherwise AIO will not work correctly
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
- /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'!
networks:
nextcloud-ext-ipvlan:
ipv6_address: 1f97:1bc1:e360:0195::7
environment:
NEXTCLOUD_ENABLE_DRI_DEVICE: "true"
NEXTCLOUD_ADDITIONAL_APKS: imagemagick bash ffmpeg libva-utils libva-vdpau-driver libva-intel-driver intel-media-driver mesa-va-gallium
AIO_COMMUNITY_CONTAINERS: memories fail2ban
NEXTCLOUD_MOUNT: /srv/nc-data-no-bkp
NEXTCLOUD_DATADIR: /srv/nc-data
volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
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
networks:
nextcloud-ext-ipvlan:
driver: ipvlan
driver_opts:
parent: enp0s31f6
ipam:
config:
- subnet: 1f97:1bc1:e360:0195::/64
gateway: 1f97:1bc1:e360:0195::1
enable_ipv6: "true" I am on Ubuntu 22, this is the output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I fear this is not going to work as you think. You might want to create the nextcloud-aio network beforehand which all containers are going to be joined to. You can customize that network if you need custom options. |
Beta Was this translation helpful? Give feedback.
Hi, I fear this is not going to work as you think. You might want to create the nextcloud-aio network beforehand which all containers are going to be joined to. You can customize that network if you need custom options.