I’m facing this problem - I’m building my own image with docker-compose build --pull
Initially, I used nextcloud:latest which broke my compatibility with php because I didn’t update since major version 24…
In my yaml I tried using label 26.0.2-ls246:
version: ‘3’
services:
app:
image: nextcloud:26.0.2-ls246
build: .
container_name: nextcloud-app
labels:
- “com.centurylinklabs.watchtower.enable=false”
networks:
- nextcloud_network
ports:
- 444:443
depends_on:
- db
volumes:
- /srv/dev-disk-by-uuid-5802bb05-8f91-48c7-9d69-40141b872005/Appdata/nextcloud:/var/www/html
- /etc/ssl/nextcloud:/etc/ssl/nextcloud
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
db:
image: yobasystems/alpine-mariadb:latest
container_name: nextcloud-db
networks:
- nextcloud_network
volumes:
- /srv/dev-disk-by-uuid-5802bb05-8f91-48c7-9d69-40141b872005/Appdata/nextclouddb:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- PATH
env_file:
- db.env
restart: unless-stopped
networks:
nextcloud_network:
My Dockerfile:
FROM nextcloud:apache
RUN apt-get update && apt-get install -y
supervisor nano
&& rm -rf /var/lib/apt/lists/*
&& mkdir /var/log/supervisord /var/run/supervisord /etc/ssl/nextcloud
COPY supervisord.conf /
COPY setssl.sh /usr/local/bin/
RUN /usr/local/bin/setssl.sh webmaster@xxx.duckdns.org xxx.duckdns.org
# ENV NEXTCLOUD_UPDATE=1
CMD [“/usr/bin/supervisord”, “-c”, “/supervisord.conf”]
but after building and bringing container up with docker-compose up -d
there ist still
NEXTCLOUD_VERSION 29.0.5
in the ENV-Section of the container (see screenshot)
- and still the PHP-message
This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.22
WHAT AM I DOING WRONG??