208 lines
5.1 KiB
YAML
208 lines
5.1 KiB
YAML
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
server-dev:
|
|
container_name: noteflow-server-dev
|
|
build:
|
|
context: .
|
|
dockerfile: docker/server.Dockerfile
|
|
target: dev
|
|
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: cpu
|
|
volumes:
|
|
- .:/workspace
|
|
- server_venv:/workspace/.venv
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
qdrant:
|
|
condition: service_healthy
|
|
networks:
|
|
- noteflow-net
|
|
|
|
server-gpu-dev:
|
|
container_name: noteflow-server-dev
|
|
build:
|
|
context: .
|
|
dockerfile: docker/server-gpu.Dockerfile
|
|
target: dev
|
|
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: cuda
|
|
NOTEFLOW_DIARIZATION_DEVICE: cuda
|
|
volumes:
|
|
- .:/workspace
|
|
- server_venv_gpu:/workspace/.venv
|
|
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:
|
|
- gpu
|
|
|
|
server-rocm-dev:
|
|
container_name: noteflow-server-dev
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.rocm
|
|
target: dev
|
|
args:
|
|
ROCM_VERSION: ${ROCM_VERSION:-6.4.1}
|
|
ROCM_PYTORCH_RELEASE: ${ROCM_PYTORCH_RELEASE:-2.6.0}
|
|
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:
|
|
- rocm
|
|
|
|
frontend:
|
|
container_name: noteflow-frontend
|
|
image: node:20-alpine
|
|
working_dir: /app
|
|
ports:
|
|
- "5173:5173"
|
|
volumes:
|
|
- ./client:/app
|
|
command: sh -c "npm install && npm run dev"
|
|
environment:
|
|
- NODE_ENV=development
|
|
- VITE_HMR_HOST=${VITE_HMR_HOST:-localhost}
|
|
networks:
|
|
- noteflow-net
|
|
|
|
volumes:
|
|
noteflow_pg_data:
|
|
noteflow_redis_data:
|
|
noteflow_qdrant_data:
|
|
server_venv:
|
|
server_venv_gpu:
|
|
|
|
networks:
|
|
noteflow-net:
|
|
driver: bridge
|