From 2d7088df0e5a9b80979b0d34f7942ccbc6d3a447 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 18 Aug 2021 01:51:00 +0200 Subject: [PATCH] Added specific nextcloud version --- roles/docker-nextcloud/README.md | 4 ++++ roles/docker-nextcloud/tasks/main.yml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/docker-nextcloud/README.md b/roles/docker-nextcloud/README.md index 85d1c77f..8abbf0e0 100644 --- a/roles/docker-nextcloud/README.md +++ b/roles/docker-nextcloud/README.md @@ -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 -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 diff --git a/roles/docker-nextcloud/tasks/main.yml b/roles/docker-nextcloud/tasks/main.yml index 4233d809..d5a8bd4f 100644 --- a/roles/docker-nextcloud/tasks/main.yml +++ b/roles/docker-nextcloud/tasks/main.yml @@ -11,7 +11,7 @@ project_name: nextcloud definition: application: - image: nextcloud + image: "nextcloud:{{nextcloud_version}}-apache" restart: always log_driver: journald links: @@ -21,6 +21,8 @@ ports: - "127.0.0.1:{{http_port}}:80" environment: + DOCKER_CLIENT_TIMEOUT: 120 + COMPOSE_HTTP_TIMEOUT: 120 MYSQL_DATABASE: "nextcloud" MYSQL_USER: "nextcloud" MYSQL_PASSWORD: "{{nextcloud_database_password}}"