-
Steps to reproduce
services:
caddy:
image: caddy:alpine
restart: unless-stopped
container_name: caddy
volumes:
- /srv/fast/caddy/Caddyfile:/etc/caddy/Caddyfile
- /srv/fast/caddy/certs:/certs
- /srv/fast/caddy/config:/config
- /srv/fast/caddy/data:/data
- /srv/fast/caddy/sites:/srv
- /mnt/ssl:/mnt/ssl
network_mode: "host"
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
ports:
- "8080:8080"
environment:
- APACHE_PORT=11000
- NEXTCLOUD_DATADIR=/srv/fast/ncdata
- NEXTCLOUD_MEMORY_LIMIT=2048M
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- caddy
volumes:
nextcloud_aio_mastercontainer:
Expected behaviormastercointainer is able to handle this situation and updates without problems Actual behaviormastercontainer fails to update, because the volume is not named
Either the mastercontainer should inspect the volume that is mounted to it, be it automatically or via env variable, OR it should be clearly stated in docs, to use: volumes:
nextcloud_aio_mastercontainer:
external: true and run Host OSDoesn't matter Nextcloud AIO versionThis happened to me when I updated to Nextcloud AIO v4.6.2, I assume from v4.5.0 Current channellatest Other valuable info |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
How to fix the installation: docker volume create --name nextcloud_aio_mastercontainer
docker run --rm -it -v PROJECT_NAME_nextcloud_aio_mastercontainer:/from -v nextcloud_aio_mastercontainer:/to alpine ash -c "cd /from ; cp -av . /to" (replace Then, edit the compose file, add the After confirming that everything works, I guess best is to remove the now dangling volume: docker volume ls -q -f dangling=true Then: docker volume rm PROJECT_NAME_nextcloud_aio_mastercontainer |
Beta Was this translation helpful? Give feedback.
-
The weirdest part is that I did couple of mastercontainer updates since February (when I started my journey with nextcloud), and only now this became a problem. |
Beta Was this translation helpful? Give feedback.
-
this line is missing in your compose: Line 5 in 4b30bcd |
Beta Was this translation helpful? Give feedback.
this line is missing in your compose:
all-in-one/docker-compose.yml
Line 5 in 4b30bcd