Initial commit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-speech}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-speech}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-speech_dev_password}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-speech} -d ${POSTGRES_DB:-speech}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
|
||||
flowise:
|
||||
image: flowiseai/flowise:latest
|
||||
environment:
|
||||
PORT: 3000
|
||||
FLOWISE_USERNAME: ${FLOWISE_USERNAME:-admin}
|
||||
FLOWISE_PASSWORD: ${FLOWISE_PASSWORD:-admin}
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- flowise-data:/root/.flowise
|
||||
command: /bin/sh -c "sleep 3; flowise start"
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ./apps/api
|
||||
network: host
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgres://speech:speech_dev_password@postgres:5432/speech?sslmode=disable}
|
||||
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
|
||||
API_PORT: ${API_PORT:-8080}
|
||||
APP_JWT_SECRET: ${APP_JWT_SECRET:-dev-secret-change-me}
|
||||
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:5173,http://localhost:8080}
|
||||
DEBUG_ENABLED: ${DEBUG_ENABLED:-true}
|
||||
DEBUG_VERBOSE: ${DEBUG_VERBOSE:-false}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-debug}
|
||||
AZURE_SPEECH_KEY: ${AZURE_SPEECH_KEY:-}
|
||||
AZURE_SPEECH_REGION: ${AZURE_SPEECH_REGION:-}
|
||||
AZURE_ENABLE_MOCK: ${AZURE_ENABLE_MOCK:-true}
|
||||
FLOWISE_BASE_URL: ${FLOWISE_BASE_URL:-http://flowise:3000}
|
||||
FLOWISE_CHATFLOW_ID: ${FLOWISE_CHATFLOW_ID:-}
|
||||
FLOWISE_API_KEY: ${FLOWISE_API_KEY:-}
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
flowise:
|
||||
condition: service_started
|
||||
|
||||
web:
|
||||
build:
|
||||
context: ./apps/web
|
||||
network: host
|
||||
environment:
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:8080}
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
redis-data:
|
||||
flowise-data:
|
||||
Reference in New Issue
Block a user