Refactor: streamline core service and clean workspace
This commit is contained in:
88
docker-compose.yml
Executable file → Normal file
88
docker-compose.yml
Executable file → Normal file
@@ -1,86 +1,24 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: nextcloud_ai_app
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=1
|
||||
volumes:
|
||||
- ./downloads:/app/downloads
|
||||
- ./resumenes_docx:/app/resumenes_docx
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- OLLAMA_HOST=http://ollama:11434
|
||||
- CLAUDE_DANGEROUSLY_SKIP_PERMISSIONS=1
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
depends_on:
|
||||
- ollama
|
||||
restart: always
|
||||
|
||||
ollama:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: ollama_server
|
||||
volumes:
|
||||
- ./ollama_data:/root/.ollama
|
||||
ports:
|
||||
- "11434:11434"
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
restart: always
|
||||
|
||||
dashboard:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dashboard
|
||||
container_name: audio_dashboard
|
||||
volumes:
|
||||
- ./downloads:/app/downloads
|
||||
- ./templates:/app/templates
|
||||
- ./processed_files.txt:/app/processed_files.txt
|
||||
- ./.main_service.lock:/app/.main_service.lock
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DASHBOARD_SECRET_KEY=${DASHBOARD_SECRET_KEY:-dashboard-secret-key-change-me}
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL:-https://api.z.ai/api/anthropic}
|
||||
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN}
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- app
|
||||
restart: always
|
||||
|
||||
filebrowser:
|
||||
image: filebrowser/filebrowser
|
||||
container_name: downloads_filebrowser
|
||||
volumes:
|
||||
- ./downloads:/srv
|
||||
- ./filebrowser_config:/config
|
||||
command: [
|
||||
"--address", "0.0.0.0",
|
||||
"--port", "8080",
|
||||
"--root", "/srv",
|
||||
"--database", "/config/filebrowser.db",
|
||||
"--username", "ren",
|
||||
"--password", "$$2b$$10$$KbFwEuIb3g26kYCxVzl0Ju81OxhK1KHQNUZCLAPDg298XQBOvhoHS"
|
||||
]
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user