chore(infra): add chat-server and stream-server to docker-compose dev
This commit is contained in:
parent
1f72854192
commit
ba53c3927e
1 changed files with 52 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue