Skip to content

Commit da9da9e

Browse files
Add Render deployment config
- render.yaml blueprint for one-click deploy - Updated README with Render deploy button - Added docker-compose instructions
1 parent d53a6ee commit da9da9e

2 files changed

Lines changed: 38 additions & 2 deletions

File tree

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ docker build -t distill .
168168
docker run -p 8080:8080 -e OPENAI_API_KEY=your-key distill api
169169
```
170170

171+
### Docker Compose
172+
173+
```bash
174+
# Start Distill + Qdrant (local vector DB)
175+
docker-compose up
176+
```
177+
171178
### Fly.io
172179

173180
```bash
@@ -176,9 +183,18 @@ fly secrets set OPENAI_API_KEY=your-key
176183
fly deploy
177184
```
178185

179-
### Railway / Render
186+
### Render
187+
188+
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/Siddhant-K-code/distill)
189+
190+
Or manually:
191+
1. Connect your GitHub repo
192+
2. Set environment variables (`OPENAI_API_KEY`)
193+
3. Deploy
194+
195+
### Railway
180196

181-
Use the included `Dockerfile` or connect your repo directly.
197+
Connect your repo and set `OPENAI_API_KEY` in environment variables.
182198

183199
## Architecture
184200

render.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Render Blueprint
2+
# https://render.com/docs/blueprint-spec
3+
4+
services:
5+
- type: web
6+
name: distill
7+
runtime: go
8+
region: oregon
9+
plan: free
10+
buildCommand: go build -o distill .
11+
startCommand: ./distill api --port $PORT
12+
envVars:
13+
- key: OPENAI_API_KEY
14+
sync: false # Set manually in dashboard
15+
- key: DISTILL_API_KEYS
16+
sync: false # Optional: comma-separated API keys for auth
17+
- key: GO_VERSION
18+
value: 1.22.0
19+
healthCheckPath: /health
20+
autoDeploy: true

0 commit comments

Comments
 (0)