feat: initial mIRCcloud.com scaffold
- Express + TypeScript backend with IRC connection manager - React + Vite frontend with mIRC-inspired theme - Drizzle ORM + PostgreSQL schema (users, connections, channels, messages) - Redis pub/sub for real-time WebSocket delivery across replicas - IRC color code parser (16 + 99 extended palette) - Kubernetes manifests for homecloud deployment - Multi-stage Dockerfile with non-root user - docker-compose for local development
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
target: server-build
|
||||
command: npx tsx watch src/index.ts
|
||||
working_dir: /app/server
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./server/src:/app/server/src
|
||||
- ./client/src:/app/client/src
|
||||
- ./client/index.html:/app/client/index.html
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- PORT=3000
|
||||
- DATABASE_URL=postgresql://mirccloud:mirccloud@postgres:5432/mirccloud
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- JWT_SECRET=dev-secret-change-me
|
||||
- CORS_ORIGIN=http://localhost:5173
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
postgres:
|
||||
image: postgres:16
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
- POSTGRES_USER=mirccloud
|
||||
- POSTGRES_PASSWORD=mirccloud
|
||||
- POSTGRES_DB=mirccloud
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U mirccloud"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
command: redis-server --appendonly yes
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user