Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
docker_notes:docker-nextcloud [2024-04-13 Sat wk15 19:20] – [NGINX configuration] baumkp | docker_notes:docker-nextcloud [2024-04-28 Sun wk17 14:58] – [Nextcloud with supervisord] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
======Nextcloud Container====== | ======Nextcloud Container====== | ||
- | < | + | < |
Nextcloud needs a number of services to run; the main Nextcloud server, a database and Redis. In addition, there needs to be a proxy server or similar to forward on common domain requests to sub-domains as well as handling certificates, | Nextcloud needs a number of services to run; the main Nextcloud server, a database and Redis. In addition, there needs to be a proxy server or similar to forward on common domain requests to sub-domains as well as handling certificates, | ||
Line 10: | Line 10: | ||
* '' | * '' | ||
+ | =====Nextcloud with supervisord===== | ||
+ | The base [[https:// | ||
+ | |||
+ | Today (2024-04-27) after upgrading to Nextcloud 29 I finally got rid of all my administration security and setup page warnings and errors. This included some issues with nginx configuration that magically went away with version 29 and adding imagemagick-svg to the image as just noted. As well as cleaning up [[https:// | ||
+ | |||
+ | As docker adminstartion warns about missing php imagemagick-svg support I also added the Apline package to the updated image to rectify this warning. | ||
+ | |||
+ | ++++ Dockerfile| | ||
+ | <code yaml># | ||
+ | FROM nextcloud: | ||
+ | # See https:// | ||
+ | # | ||
+ | # | ||
+ | # that give the latest release | ||
+ | |||
+ | RUN apk add --no-cache imagemagick-svg supervisor \ | ||
+ | && mkdir / | ||
+ | |||
+ | COPY supervisord.conf / | ||
+ | |||
+ | ENV NEXTCLOUD_UPDATE=1 | ||
+ | |||
+ | CMD ["/ | ||
+ | ++++ | ||
+ | |||
+ | ++++supervisord.conf| | ||
+ | <code yaml> | ||
+ | nodaemon=true | ||
+ | logfile=/ | ||
+ | pidfile=/ | ||
+ | childlogdir=/ | ||
+ | logfile_maxbytes=50MB | ||
+ | logfile_backups=10 | ||
+ | loglevel=error | ||
+ | |||
+ | [program: | ||
+ | stdout_logfile=/ | ||
+ | stdout_logfile_maxbytes=0 | ||
+ | stderr_logfile=/ | ||
+ | stderr_logfile_maxbytes=0 | ||
+ | command=php-fpm | ||
+ | |||
+ | [program: | ||
+ | stdout_logfile=/ | ||
+ | stdout_logfile_maxbytes=0 | ||
+ | stderr_logfile=/ | ||
+ | stderr_logfile_maxbytes=0 | ||
+ | command=/ | ||
+ | ++++ | ||
+ | ++++docker-compose.yml| | ||
+ | <code yaml>--- | ||
+ | services: | ||
+ | app: | ||
+ | build: ./ | ||
+ | image: nextcloud-fpm-cron: | ||
+ | # image: nextcloud: | ||
+ | restart: always | ||
+ | depends_on: | ||
+ | - db | ||
+ | - redis | ||
+ | volumes: | ||
+ | - / | ||
+ | - / | ||
+ | - / | ||
+ | - / | ||
+ | networks: | ||
+ | - proxy | ||
+ | environment: | ||
+ | - MYSQL_PASSWORD=kpb1670 | ||
+ | - MYSQL_DATABASE=nextcloud | ||
+ | - MYSQL_USER=nextcloud | ||
+ | - MYSQL_HOST=db | ||
+ | - REDIS_HOST=redis | ||
+ | |||
+ | db: | ||
+ | image: mariadb: | ||
+ | restart: always | ||
+ | command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW | ||
+ | volumes: | ||
+ | - / | ||
+ | environment: | ||
+ | - MYSQL_ROOT_PASSWORD=kpb8487 | ||
+ | - MYSQL_PASSWORD=kpb1670 | ||
+ | - MYSQL_DATABASE=nextcloud | ||
+ | - MYSQL_USER=nextcloud | ||
+ | - MARIADB_AUTO_UPGRADE=1 | ||
+ | networks: | ||
+ | - proxy | ||
+ | |||
+ | redis: | ||
+ | image: redis: | ||
+ | restart: always | ||
+ | networks: | ||
+ | - proxy | ||
+ | |||
+ | web: | ||
+ | image: nginx | ||
+ | restart: always | ||
+ | ports: | ||
+ | - 8180:80 | ||
+ | depends_on: | ||
+ | - app | ||
+ | volumes: | ||
+ | - ./ | ||
+ | volumes_from: | ||
+ | - app | ||
+ | networks: | ||
+ | - proxy | ||
+ | |||
+ | volumes: | ||
+ | nextcloud: | ||
+ | db: | ||
+ | |||
+ | networks: | ||
+ | proxy: | ||
+ | external: true | ||
+ | </ | ||
+ | ++++ | ||
====RedirectRegex==== | ====RedirectRegex==== | ||
I get a redirect error in Nextcloud that I have not been able to track down to date. Does not seem much info in this on the net, and the little there is also indicates a problem without and easy solution. | I get a redirect error in Nextcloud that I have not been able to track down to date. Does not seem much info in this on the net, and the little there is also indicates a problem without and easy solution. | ||
Line 78: | Line 196: | ||
Nextcloud documentation (stable) on [[https:// | Nextcloud documentation (stable) on [[https:// | ||
+ | Nextcloud documentation (stable) on general installation [[https:// | ||
====Reverse Proxy==== | ====Reverse Proxy==== | ||
- | Nextcloud documentation (stable) for [[https:// | + | Nextcloud documentation (stable) for [[https:// |
====cron==== | ====cron==== | ||
Line 86: | Line 205: | ||
*[[https:// | *[[https:// | ||
- | ====CLI Use of Nextcloud==== | + | =====CLI Use of Nextcloud===== |
Sometime it is necessary to get direct CLI (command line interface) access to Nextcloud for updating, turning of maintenance mode and similar. | Sometime it is necessary to get direct CLI (command line interface) access to Nextcloud for updating, turning of maintenance mode and similar. | ||
- | * '' | + | * '' |
* Nextcloud is running in the nextcloud-fpm Docker container, to access the cli in Portainer need to select ''/ | * Nextcloud is running in the nextcloud-fpm Docker container, to access the cli in Portainer need to select ''/ | ||
* Manually upgrade command: '' | * Manually upgrade command: '' | ||
Line 361: | Line 480: | ||
</ | </ | ||
++++ | ++++ | ||
+ | |||
+ | ====File Integrity Check==== | ||
+ | This error is a bit painful. | ||
+ | - Basically check the files that are called up as failing integrity. | ||
+ | - Judiciously delete files where they are not needed. | ||
+ | - Then run command: '' | ||
+ | Nextcloud runs '' | ||
=====Nextcloud Client and CLI client configuration===== | =====Nextcloud Client and CLI client configuration===== | ||
Line 430: | Line 556: | ||
===Collabora References=== | ===Collabora References=== | ||
*[[https:// | *[[https:// | ||
- | * | + | *[[https:// |
+ | *[[https:// | ||
=====Other Possible Apps/ | =====Other Possible Apps/ |