From ba53c3927ee2bfb8b0beb39efb60202741969a38 Mon Sep 17 00:00:00 2001 From: senke Date: Wed, 18 Feb 2026 12:03:47 +0100 Subject: [PATCH] chore(infra): add chat-server and stream-server to docker-compose dev --- docker-compose.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 09601cb5e..541c26749 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -196,6 +196,58 @@ services: timeout: 5s retries: 5 + # Chat Server (Rust) - v0.101 + chat-server: + build: + context: ./veza-chat-server + container_name: veza_chat_dev + environment: + - DATABASE_URL=postgresql://${POSTGRES_USER:-veza}:${POSTGRES_PASSWORD:-devpassword}@postgres:5432/${POSTGRES_DB:-veza}?sslmode=disable + - REDIS_URL=redis://redis:6379 + - JWT_SECRET=${JWT_SECRET:-dev-secret-key-minimum-32-characters-long} + - CHAT_SERVER_PORT=3000 + - CHAT_SERVER_HOST=0.0.0.0 + ports: + - "${PORT_CHAT:-18081}:3000" + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + networks: + - veza-net + healthcheck: + test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"] + interval: 10s + timeout: 5s + retries: 5 + + # Stream Server (Rust) - v0.101 + stream-server: + build: + context: ./veza-stream-server + container_name: veza_stream_dev + environment: + - DATABASE_URL=postgresql://${POSTGRES_USER:-veza}:${POSTGRES_PASSWORD:-devpassword}@postgres:5432/${POSTGRES_DB:-veza}?sslmode=disable + - REDIS_URL=redis://redis:6379 + - JWT_SECRET=${JWT_SECRET:-dev-secret-key-minimum-32-characters-long} + - SECRET_KEY=${JWT_SECRET:-dev-secret-key-minimum-32-characters-long} + - PORT=3001 + ports: + - "${PORT_STREAM:-18082}:3001" + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + networks: + - veza-net + healthcheck: + test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3001/health"] + interval: 10s + timeout: 5s + retries: 5 + volumes: postgres_data: redis_data: