De Wiki inetshell
Saltar a: navegación, buscar

Docker full[editar]

https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/full/apache

Memcash + Redis[editar]

https://docs.nextcloud.com/server/9/admin_manual/configuration_files/files_locking_transactional.html

Docker con Redis[editar]

https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml

Migrar a otra base de datos[editar]

https://docs.nextcloud.com/server/12/admin_manual/configuration_database/db_conversion.html

  • Si da problemas por tablas grandes, borrar cache en la base sqlite:
DELETE FROM oc_file_locks;
DELETE FROM oc_filecache;

Docker[editar]

  • docker-compose.yml:
version: '2'

services:
  nextcloud:
    image: nextcloud
    container_name: nextcloud
    volumes:
      - ./nextcloud:/var/www/html:Z
    ports:
      - 8080:80
    restart: unless-stopped

  proxy:
    container_name: proxy
    build: proxy
    ports:
      - 80:80/tcp
      - 443:443/tcp
    environment:
      - [email protected]
    restart: unless-stopped

  • proxy/nextcloud.conf:
server {
    listen              443 ssl;
    server_name         mynextcloud.ddns.net;
    ssl_certificate     /etc/letsencrypt/live/mynextcloud.ddns.net/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mynextcloud.ddns.net/privkey.pem;
    client_max_body_size 4g;

    location / {
        proxy_pass http://nextcloud:80;
    }
}
  • proxy/Dockerfile:
FROM staticfloat/nginx-certbot
COPY *.conf /etc/nginx/conf.d/
  • Para iniciar, ejecutar el siguiente comando:
docker-compose up --build -d
  • Si manda error al redirigir, modificar el archivo nextcloud/config/config.php:
  'trusted_domains' =>
  array (
    0 => 'mynextcloud.ddns.net',
    1 => 'nextcloud',
  ),
  'overwritehost' => 'mynextcloud.ddns.net',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://mynextcloud.ddns.net',