Guides
Docker Deployment
Deploy textrawl with Docker and Docker Compose
Deploy textrawl to production using Docker.
Quick Start
# Clone repository
git clone https://github.com/jeffgreendesign/textrawl.git
cd textrawl
# Configure environment
cp .env.example .env
# Edit .env with your credentials
# Build and run
docker compose up -dDocker Compose
version: '3.8'
services:
textrawl:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=${DATABASE_URL}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- API_BEARER_TOKEN=${API_BEARER_TOKEN}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3Environment Variables
Required for production:
DATABASE_URL=postgresql://user:pass@ep-xxx-pooler.neon.tech/textrawl?sslmode=require
OPENAI_API_KEY=sk-your-key
API_BEARER_TOKEN=your-secure-32-char-token
PORT=3000Health Checks
/health- Basic health/health/ready- Database connectivity/health/live- Liveness probe
Reverse Proxy
Behind nginx:
location /mcp {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}Logs
# View logs
docker compose logs -f textrawl
# Follow specific service
docker compose logs -f textrawl