- Node.js Express application with modern white UI - PostgreSQL and Redis integration - Docker Compose configuration without host port mappings - Traefik-ready with proper labels - Health check endpoint 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
58 lines
1.2 KiB
Markdown
58 lines
1.2 KiB
Markdown
# Template 001 - Start an AI Company Deployment Template
|
|
|
|
This is a template site demonstrating how to deploy applications on Start an AI Company servers using Docker Compose and Traefik.
|
|
|
|
## Features
|
|
|
|
- Node.js Express application
|
|
- PostgreSQL database
|
|
- Redis caching
|
|
- Docker Compose configuration
|
|
- Traefik-ready (no host port mappings)
|
|
- Modern, clean white UI
|
|
|
|
## Architecture
|
|
|
|
- **App**: Node.js Express server running on port 3000 (internal)
|
|
- **Database**: PostgreSQL 15
|
|
- **Cache**: Redis 7
|
|
- **Routing**: Traefik handles external routing and SSL
|
|
|
|
## Deployment
|
|
|
|
Deploy using the SAAC command:
|
|
|
|
```bash
|
|
saac create application
|
|
```
|
|
|
|
This will deploy the application to https://template-001.startanaicompany.com
|
|
|
|
## Local Development
|
|
|
|
```bash
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
## Docker Deployment
|
|
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
## Environment Variables
|
|
|
|
- `PORT`: Application port (default: 3000)
|
|
- `POSTGRES_HOST`: PostgreSQL host
|
|
- `POSTGRES_PORT`: PostgreSQL port
|
|
- `POSTGRES_USER`: PostgreSQL user
|
|
- `POSTGRES_PASSWORD`: PostgreSQL password
|
|
- `POSTGRES_DB`: PostgreSQL database name
|
|
- `REDIS_HOST`: Redis host
|
|
- `REDIS_PORT`: Redis port
|
|
|
|
## Health Check
|
|
|
|
Visit `/health` endpoint to check service status.
|