feat: Introduce Gitea CI/CD workflows, refactor Docker deployment with dedicated dev/prod compose files and enhanced ROCm GPU support, and update RAG documentation for new AI and ASR infrastructure.
This commit is contained in:
392
compose.yaml.deprecated
Normal file
392
compose.yaml.deprecated
Normal file
@@ -0,0 +1,392 @@
|
||||
services:
|
||||
# =============================================================================
|
||||
# Infrastructure Services
|
||||
# =============================================================================
|
||||
db:
|
||||
container_name: noteflow-postgres
|
||||
image: pgvector/pgvector:pg15
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-noteflow}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-noteflow}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-noteflow}
|
||||
volumes:
|
||||
- noteflow_pg_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-noteflow} -d ${POSTGRES_DB:-noteflow}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- noteflow-net
|
||||
profiles:
|
||||
- infra
|
||||
- server
|
||||
- server-gpu
|
||||
- server-rocm
|
||||
- full
|
||||
- full-gpu
|
||||
- server-full
|
||||
- gpu
|
||||
|
||||
redis:
|
||||
container_name: noteflow-redis
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- noteflow_redis_data:/data
|
||||
command: redis-server --appendonly yes
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- noteflow-net
|
||||
profiles:
|
||||
- infra
|
||||
- server
|
||||
- server-gpu
|
||||
- server-rocm
|
||||
- full
|
||||
- full-gpu
|
||||
- server-full
|
||||
- gpu
|
||||
|
||||
qdrant:
|
||||
container_name: noteflow-qdrant
|
||||
image: qdrant/qdrant:v1.12.1
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "6333:6333"
|
||||
- "6334:6334"
|
||||
volumes:
|
||||
- noteflow_qdrant_data:/qdrant/storage
|
||||
environment:
|
||||
QDRANT__SERVICE__GRPC_PORT: 6334
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '</dev/tcp/localhost/6333'"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
networks:
|
||||
- noteflow-net
|
||||
profiles:
|
||||
- infra
|
||||
- server
|
||||
- server-gpu
|
||||
- server-rocm
|
||||
- full
|
||||
- full-gpu
|
||||
- server-full
|
||||
- gpu
|
||||
|
||||
# =============================================================================
|
||||
# Application Services
|
||||
# =============================================================================
|
||||
# Note: 'server', 'server-gpu', 'server-rocm', 'server-rocm-dev', and 'server-full' are mutually exclusive (same port 50051).
|
||||
# Use ONE of: 'server' (CPU), 'server-gpu' (NVIDIA CUDA), 'server-rocm' (AMD ROCm), 'server-rocm-dev' (ROCm hot reload), or 'server-full'.
|
||||
#
|
||||
# GPU Support:
|
||||
# - NVIDIA CUDA: use profile 'server-gpu' (or 'full-gpu')
|
||||
# - AMD ROCm: use profile 'server-rocm'
|
||||
# - Generic GPU profile: use 'gpu' with an explicit service (server-gpu or server-rocm)
|
||||
# - NVIDIA requires: NVIDIA drivers, nvidia-container-toolkit, Docker with GPU support
|
||||
# - AMD requires: ROCm drivers with /dev/kfd and /dev/dri access (Linux only)
|
||||
# - On Windows/WSL2: Ensure WSL2 GPU passthrough is configured
|
||||
# - On Linux: Install nvidia-container-toolkit package
|
||||
# - On macOS: GPU passthrough not supported (use CPU profile)
|
||||
|
||||
# CPU-only server (default, cross-platform)
|
||||
# Build: docker buildx bake server
|
||||
# server:
|
||||
# container_name: noteflow-server
|
||||
# image: noteflow-server:latest
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: docker/server.Dockerfile
|
||||
# target: server
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "50051:50051"
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# NOTEFLOW_DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-noteflow}:${POSTGRES_PASSWORD:-noteflow}@db:5432/${POSTGRES_DB:-noteflow}
|
||||
# NOTEFLOW_REDIS_URL: redis://redis:6379/0
|
||||
# NOTEFLOW_QDRANT_URL: http://qdrant:6333
|
||||
# NOTEFLOW_LOG_FORMAT: console
|
||||
# # Force CPU device when running CPU-only container
|
||||
# NOTEFLOW_ASR_DEVICE: cpu
|
||||
# volumes:
|
||||
# - .:/workspace
|
||||
# - server_venv:/workspace/.venv
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# redis:
|
||||
# condition: service_healthy
|
||||
# qdrant:
|
||||
# condition: service_healthy
|
||||
# networks:
|
||||
# - noteflow-net
|
||||
# profiles:
|
||||
# - server
|
||||
# - full
|
||||
|
||||
# GPU-enabled server (NVIDIA CUDA)
|
||||
# Build: docker buildx bake server-gpu
|
||||
# server-gpu:
|
||||
# container_name: noteflow-server
|
||||
# image: git.baked.rocks/vasceannie/noteflow-server-gpu:latest
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: docker/server-gpu.Dockerfile
|
||||
# target: server
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "50051:50051"
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# NOTEFLOW_DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-noteflow}:${POSTGRES_PASSWORD:-noteflow}@db:5432/${POSTGRES_DB:-noteflow}
|
||||
# NOTEFLOW_REDIS_URL: redis://redis:6379/0
|
||||
# NOTEFLOW_QDRANT_URL: http://qdrant:6333
|
||||
# NOTEFLOW_LOG_FORMAT: console
|
||||
# # Enable CUDA device auto-detection
|
||||
# NOTEFLOW_ASR_DEVICE: cuda
|
||||
# NOTEFLOW_DIARIZATION_DEVICE: cuda
|
||||
# volumes:
|
||||
# - .:/workspace
|
||||
# - server_venv_gpu:/workspace/.venv
|
||||
# # NVIDIA GPU configuration (cross-platform compatible)
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# redis:
|
||||
# condition: service_healthy
|
||||
# qdrant:
|
||||
# condition: service_healthy
|
||||
# networks:
|
||||
# - noteflow-net
|
||||
# profiles:
|
||||
# - server-gpu
|
||||
# - full-gpu
|
||||
# - gpu
|
||||
|
||||
# GPU-enabled server (AMD ROCm)
|
||||
# Build: docker buildx bake server-rocm
|
||||
# server-rocm:
|
||||
# container_name: noteflow-server
|
||||
# image: git.baked.rocks/vasceannie/noteflow-server-rocm:latest
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: docker/Dockerfile.rocm
|
||||
# target: server
|
||||
# args:
|
||||
# ROCM_VERSION: ${ROCM_VERSION:-6.4.1}
|
||||
# ROCM_PYTORCH_RELEASE: ${ROCM_PYTORCH_RELEASE:-2.6.0}
|
||||
# SPACY_MODEL_URL: ${SPACY_MODEL_URL:-https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl}
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "50051:50051"
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# NOTEFLOW_DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-noteflow}:${POSTGRES_PASSWORD:-noteflow}@db:5432/${POSTGRES_DB:-noteflow}
|
||||
# NOTEFLOW_REDIS_URL: redis://redis:6379/0
|
||||
# NOTEFLOW_QDRANT_URL: http://qdrant:6333
|
||||
# NOTEFLOW_LOG_FORMAT: console
|
||||
# # Enable ROCm device auto-detection
|
||||
# NOTEFLOW_ASR_DEVICE: rocm
|
||||
# NOTEFLOW_DIARIZATION_DEVICE: auto
|
||||
# NOTEFLOW_FEATURE_ROCM_ENABLED: "true"
|
||||
# volumes:
|
||||
# - .:/workspace
|
||||
# devices:
|
||||
# - /dev/kfd
|
||||
# - /dev/dri
|
||||
# group_add:
|
||||
# - ${VIDEO_GID:-44}
|
||||
# - ${RENDER_GID:-993}
|
||||
# security_opt:
|
||||
# - seccomp=unconfined
|
||||
# ulimits:
|
||||
# memlock: -1
|
||||
# stack: 67108864
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# redis:
|
||||
# condition: service_healthy
|
||||
# qdrant:
|
||||
# condition: service_healthy
|
||||
# networks:
|
||||
# - noteflow-net
|
||||
# profiles:
|
||||
# - server-rocm
|
||||
# - full-gpu
|
||||
# - gpu
|
||||
|
||||
# GPU-enabled dev server (AMD ROCm with hot reload)
|
||||
# Build: docker buildx bake server-rocm-dev
|
||||
server-rocm-dev:
|
||||
container_name: noteflow-server-dev
|
||||
image: git.baked.rocks/vasceannie/noteflow-server-rocm-dev:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile.rocm
|
||||
target: server-dev
|
||||
args:
|
||||
ROCM_VERSION: ${ROCM_VERSION:-6.4.1}
|
||||
ROCM_PYTORCH_RELEASE: ${ROCM_PYTORCH_RELEASE:-2.6.0}
|
||||
SPACY_MODEL_URL: ${SPACY_MODEL_URL:-https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "50051:50051"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NOTEFLOW_DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-noteflow}:${POSTGRES_PASSWORD:-noteflow}@db:5432/${POSTGRES_DB:-noteflow}
|
||||
NOTEFLOW_REDIS_URL: redis://redis:6379/0
|
||||
NOTEFLOW_QDRANT_URL: http://qdrant:6333
|
||||
NOTEFLOW_LOG_FORMAT: console
|
||||
NOTEFLOW_ASR_DEVICE: rocm
|
||||
NOTEFLOW_DIARIZATION_DEVICE: auto
|
||||
NOTEFLOW_FEATURE_ROCM_ENABLED: "true"
|
||||
volumes:
|
||||
- .:/workspace
|
||||
devices:
|
||||
- /dev/kfd
|
||||
- /dev/dri
|
||||
group_add:
|
||||
- ${VIDEO_GID:-44}
|
||||
- ${RENDER_GID:-993}
|
||||
security_opt:
|
||||
- seccomp=unconfined
|
||||
tty: true
|
||||
ulimits:
|
||||
memlock: -1
|
||||
stack: 67108864
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
qdrant:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- noteflow-net
|
||||
profiles:
|
||||
- server-rocm-dev
|
||||
- full-gpu
|
||||
- gpu
|
||||
|
||||
# server-full:
|
||||
# container_name: noteflow-server-full
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: docker/server.Dockerfile
|
||||
# target: server-full
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "50051:50051"
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# NOTEFLOW_DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-noteflow}:${POSTGRES_PASSWORD:-noteflow}@db:5432/${POSTGRES_DB:-noteflow}
|
||||
# NOTEFLOW_REDIS_URL: redis://redis:6379/0
|
||||
# NOTEFLOW_QDRANT_URL: http://qdrant:6333
|
||||
# NOTEFLOW_LOG_FORMAT: console
|
||||
# volumes:
|
||||
# - .:/workspace
|
||||
# - server_venv:/workspace/.venv
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# redis:
|
||||
# condition: service_healthy
|
||||
# qdrant:
|
||||
# condition: service_healthy
|
||||
# networks:
|
||||
# - noteflow-net
|
||||
# profiles:
|
||||
# - server-full
|
||||
|
||||
# Tauri client dev container (for CI/containerized development)
|
||||
# Note: Desktop apps typically run natively, not in Docker
|
||||
# client-dev:
|
||||
# container_name: noteflow-client-dev
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: docker/client.Dockerfile
|
||||
# target: client-dev
|
||||
# environment:
|
||||
# NOTEFLOW_SERVER_HOST: server
|
||||
# NOTEFLOW_SERVER_PORT: 50051
|
||||
# DISPLAY: ${DISPLAY:-:0}
|
||||
# volumes:
|
||||
# - ./client:/app/client
|
||||
# - /tmp/.X11-unix:/tmp/.X11-unix:ro
|
||||
# - client_cargo_cache:/root/.cargo/registry
|
||||
# - client_npm_cache:/root/.npm
|
||||
# depends_on:
|
||||
# - server
|
||||
# networks:
|
||||
# - noteflow-net
|
||||
# profiles:
|
||||
# - client
|
||||
|
||||
frontend:
|
||||
container_name: noteflow-frontend
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./client:/app
|
||||
command: sh -c "npm install -g npm@latest && npm install && npm update caniuse-lite browserslist || true && npm run dev"
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- VITE_HMR_HOST=192.168.50.151
|
||||
networks:
|
||||
- noteflow-net
|
||||
profiles:
|
||||
- frontend
|
||||
- full
|
||||
- full-gpu
|
||||
|
||||
volumes:
|
||||
noteflow_pg_data:
|
||||
noteflow_redis_data:
|
||||
noteflow_qdrant_data:
|
||||
client_cargo_cache:
|
||||
client_npm_cache:
|
||||
server_venv:
|
||||
server_venv_gpu:
|
||||
|
||||
networks:
|
||||
noteflow-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user