Added specific nextcloud version

This commit is contained in:
Kevin Veen-Birkenbach 2021-08-18 01:51:00 +02:00
parent 6a5db94ade
commit 2d7088df0e
2 changed files with 7 additions and 1 deletions

View File

@ -45,3 +45,7 @@ To use occ run:
docker exec -it nextcloud_database_1 mysql -u nextcloud -pPASSWORD1234132 -D nextcloud -e "delete from oc_file_locks where 1" docker exec -it nextcloud_database_1 mysql -u nextcloud -pPASSWORD1234132 -D nextcloud -e "delete from oc_file_locks where 1"
docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --off docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --off
``` ```
## further information
- https://goneuland.de/nextcloud-upgrade-auf-neue-versionen-mittels-docker/
- https://help.nextcloud.com/t/cant-start-nextcloud-because-the-version-of-the-data-is-higher-than-the-docker-image-version-and-downgrading-is-not-supported/109438

View File

@ -11,7 +11,7 @@
project_name: nextcloud project_name: nextcloud
definition: definition:
application: application:
image: nextcloud image: "nextcloud:{{nextcloud_version}}-apache"
restart: always restart: always
log_driver: journald log_driver: journald
links: links:
@ -21,6 +21,8 @@
ports: ports:
- "127.0.0.1:{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
environment: environment:
DOCKER_CLIENT_TIMEOUT: 120
COMPOSE_HTTP_TIMEOUT: 120
MYSQL_DATABASE: "nextcloud" MYSQL_DATABASE: "nextcloud"
MYSQL_USER: "nextcloud" MYSQL_USER: "nextcloud"
MYSQL_PASSWORD: "{{nextcloud_database_password}}" MYSQL_PASSWORD: "{{nextcloud_database_password}}"