enhanced readme

This commit is contained in:
2026-03-22 16:00:55 +01:00
parent 8f5b73dffc
commit 770081397c

View File

@@ -72,6 +72,44 @@ rsync -avz -e 'ssh -p 55' \
The `.env` files are excluded because they contain secrets and should be created directly on the VPS from the `.env.example` templates. The `.env` files are excluded because they contain secrets and should be created directly on the VPS from the `.env.example` templates.
## Syncing via Git (recommended)
Now that Gitea is running, you can clone the repo directly on the VPS instead of using rsync.
### First-time setup on the VPS
```bash
# 1. Add your SSH key to Gitea (via https://git.t-gstone.de user settings)
# 2. Clone the repo
cd ~
git clone ssh://git@git.t-gstone.de:2222/gstone/nextcloud-selfhosted.git
cd nextcloud-selfhosted
# 3. Create .env files from examples
cp .env.example .env
cp nextcloud/.env.example nextcloud/.env
cp gitea/.env.example gitea/.env
cp monitoring/.env.example monitoring/.env
# 4. Edit each .env file with real values
nano .env
nano nextcloud/.env
nano gitea/.env
nano monitoring/.env
# 5. Deploy
sudo ./scripts/deploy.sh
```
### Updating the VPS after pushing changes
```bash
cd ~/nextcloud-selfhosted
git pull
sudo docker compose --env-file .env up -d
```
## Quick Start ## Quick Start
```bash ```bash