69 lines
1.4 KiB
Markdown
69 lines
1.4 KiB
Markdown
# Outline Stack
|
|
|
|
Outline Wiki with Postgres and Redis.
|
|
|
|
## Services
|
|
|
|
| Service | Port | Description |
|
|
|---------|------|-------------|
|
|
| outline | 3000:3000 | Wiki application |
|
|
| outline-postgres | - | PostgreSQL database |
|
|
| outline-redis | - | Redis cache |
|
|
|
|
## Configuration Files
|
|
|
|
Copy `redis.conf` to `/mnt/user/appdata/outline/` before deploying.
|
|
|
|
## Dependencies
|
|
|
|
- S3 bucket for uploads: `outline-wiki-data-bucket`
|
|
- Slack app for authentication: https://api.slack.com/apps/A041B5BSXD2
|
|
|
|
## NGINX Proxy Manager
|
|
|
|
Create HTTPS proxy for `wiki.rishighan.com` pointing to `192.168.1.75:3000`
|
|
|
|
## Migration from VM
|
|
|
|
1. Create directories:
|
|
```bash
|
|
mkdir -p /mnt/user/appdata/outline/{postgres-data,redis}
|
|
cp redis.conf /mnt/user/appdata/outline/
|
|
```
|
|
|
|
2. Export Postgres from VM:
|
|
```bash
|
|
ssh rishi@192.168.1.112
|
|
docker exec outline-postgres-1 pg_dump -U rishi outline > ~/outline_backup.sql
|
|
```
|
|
|
|
3. Copy backup to Flook:
|
|
```bash
|
|
scp rishi@192.168.1.112:~/outline_backup.sql /mnt/user/appdata/outline/
|
|
```
|
|
|
|
4. Deploy stack via Portainer (creates empty DB)
|
|
|
|
5. Stop outline temporarily:
|
|
```bash
|
|
docker stop outline
|
|
```
|
|
|
|
6. Import data:
|
|
```bash
|
|
docker exec -i outline-postgres psql -U rishi outline < /mnt/user/appdata/outline/outline_backup.sql
|
|
```
|
|
|
|
7. Start outline:
|
|
```bash
|
|
docker start outline
|
|
```
|
|
|
|
8. Update NPM proxy to point to 192.168.1.75:3000
|
|
|
|
9. Stop VM services after verification:
|
|
```bash
|
|
ssh rishi@192.168.1.112
|
|
cd ~/outline && docker compose down
|
|
```
|