Updated: 2025-12-28 Sun 19:48

# nextcloud

planted: 2025-07-27 last tended to: 2025-12-28

## The docker file:

    version: '3.8'
    services:
      app:
        image: nextcloud
        restart: unless-stopped
        ports:
          - 8007:80
        volumes:
          - nextcloud:/var/www/html
        environment:
          - POSTGRES_DB=nextcloud
          - POSTGRES_USER=nextcloud
          - POSTGRES_PASSWORD=zxq123_nextcloud
          - POSTGRES_HOST=postgres
        networks:
          - postgres_network

    volumes:
      nextcloud:

    networks:
      postgres_network:
        external: true

## Database related things:

    zxq_db=# CREATE DATABASE nextcloud;
    CREATE DATABASE
    zxq_db=# CREATE USER nextcloud WITH PASSWORD 'zxq123_nextcloud';
    CREATE ROLE
    zxq_db=# GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud;
    GRANT
    zxq_db=#

## Config

Location is:

sudo nano /var/lib/docker/volumes/nextcloudnextcloud/data/config/config.php

Backlinks

- selfhosting