https://github.com/alexjackson1/personal_server
A self-hosted Nextcloud web server with PostgreSQL and Redis data stoage
https://github.com/alexjackson1/personal_server
nextcloud postgresql redis self-hosted server
Last synced: about 1 month ago
JSON representation
A self-hosted Nextcloud web server with PostgreSQL and Redis data stoage
- Host: GitHub
- URL: https://github.com/alexjackson1/personal_server
- Owner: alexjackson1
- Created: 2024-12-10T20:09:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-28T20:23:46.000Z (4 months ago)
- Last Synced: 2025-02-05T21:00:49.305Z (3 months ago)
- Topics: nextcloud, postgresql, redis, self-hosted, server
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Personal Nextcloud Server
This repository contains the configuration files and setup instructions to
deploy a personal Nextcloud server using Docker.Nextcloud is a powerful, self-hosted cloud storage solution that allows users to
securely store, share, and collaborate on files. This setup integrates
PostgreSQL as the database and Redis for caching to ensure optimal performance.
Additionally, a pgAdmin container is included for managing the PostgreSQL
database.## Usage
To deploy the Nextcloud server, ensure that Docker and Docker Compose are
installed on your system, and then run `docker compose up -d`.## Configuration
The `docker-compose.yml` relies on environment variables specified in an `.env`
file located in the root directory.The `.env` file defines the settings for the Nextcloud deployment, including
database credentials, server ports, and admin accounts. Below is a sample
`.env` file:```bash
COMPOSE_PROJECT_NAME=server # Docker Compose project namePOSTGRES_USER="username" # PostgreSQL username
POSTGRES_PASSWORD="password" # PostgreSQL password
POSTGRES_DB="nextcloud" # PostgreSQL database namePGADMIN_DEFAULT_EMAIL="[email protected]" # Default email for pgAdmin login
PGADMIN_DEFAULT_PASSWORD="password" # Default password for pgAdmin login
PGADMIN_PORT=5050 # Port for pgAdminNEXTCLOUD_HOSTNAME=nextcloud.example.local # Nextcloud hostname
NEXTCLOUD_OVERWRITEPROTOCOL=https # Overwrite nextcloud protocol
NEXTCLOUD_TRUSTED_DOMAINS="localhost:8080" # Trusted domains
NEXTCLOUD_ADMIN_USER="admin" # Nextcloud admin username
NEXTCLOUD_ADMIN_PASSWORD="password" # Nextcloud admin password
NEXTCLOUD_PORT=8080 # Port for accessing NextcloudREDIS_PORT=6379 # Redis cache port
REDIS_PASSWORD="password" # Redis cache password
```