feat: add demo deployment with Caddy

This commit is contained in:
2026-01-25 17:38:30 +00:00
parent 586420a476
commit 240736c5a7
3 changed files with 112 additions and 0 deletions

16
deploy/Caddyfile Normal file
View File

@@ -0,0 +1,16 @@
demo.getnora.io {
reverse_proxy nora:4000
encode gzip
header {
-Server
X-Content-Type-Options nosniff
X-Frame-Options DENY
}
log {
output stdout
format console
}
}

57
deploy/README.md Normal file
View File

@@ -0,0 +1,57 @@
# NORA Demo Deployment
## DNS Setup
Add A record:
```
demo.getnora.io → <VPS_IP>
```
## Deploy
```bash
# Clone repo
git clone https://github.com/getnora-io/nora.git
cd nora/deploy
# Start
docker compose up -d
# Check logs
docker compose logs -f
```
## URLs
- **Web UI:** https://demo.getnora.io/ui/
- **API Docs:** https://demo.getnora.io/api-docs
- **Health:** https://demo.getnora.io/health
## Docker Usage
```bash
# Tag and push
docker tag myimage:latest demo.getnora.io/myimage:latest
docker push demo.getnora.io/myimage:latest
# Pull
docker pull demo.getnora.io/myimage:latest
```
## Management
```bash
# Stop
docker compose down
# Restart
docker compose restart
# View logs
docker compose logs -f nora
docker compose logs -f caddy
# Update
docker compose pull
docker compose up -d
```

39
deploy/docker-compose.yml Normal file
View File

@@ -0,0 +1,39 @@
services:
nora:
image: ghcr.io/getnora-io/nora:latest
build:
context: ..
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- nora-data:/data
environment:
- RUST_LOG=info
- NORA_HOST=0.0.0.0
- NORA_PORT=4000
- NORA_AUTH_ENABLED=false
networks:
- nora-net
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks:
- nora-net
depends_on:
- nora
volumes:
nora-data:
caddy-data:
caddy-config:
networks:
nora-net: