Phase 5: Docker containerization and API server for remote access
This commit is contained in:
1 parent
b17c180fbe
commit
5541770896
6 files changed
+578
-1
No files matched your search
@@ -0,0 +1,53 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
maxclaw:
|
||||
build: .
|
||||
container_name: maxclaw-agent
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
# Mount configuration directory for persistence
|
||||
- maxclaw-config:/root/.maxclaw
|
||||
# Mount current directory for development (optional)
|
||||
# - .:/app
|
||||
environment:
|
||||
# Model configuration
|
||||
- MODEL_PROVIDER=${MODEL_PROVIDER:-ollama}
|
||||
- MODEL_NAME=${MODEL_NAME:-gemma2:9b}
|
||||
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
|
||||
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
||||
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
||||
- OPENROUTER_BASE_URL=${OPENROUTER_BASE_URL:-https://openrouter.ai/api/v1}
|
||||
|
||||
# Proxmox configuration (optional)
|
||||
- PROXMOX_HOST=${PROXMOX_HOST:-}
|
||||
- PROXMOX_USER=${PROXMOX_USER:-root}
|
||||
- PROXMOX_PASSWORD=${PROXMOX_PASSWORD:-}
|
||||
- PROXMOX_TOKEN=${PROXMOX_TOKEN:-}
|
||||
networks:
|
||||
- maxclaw-network
|
||||
# Interactive mode for terminal usage
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
# Optional: Ollama service (if you want to run Ollama in Docker)
|
||||
# ollama:
|
||||
# image: ollama/ollama:latest
|
||||
# container_name: ollama
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - ollama-data:/root/.ollama
|
||||
# ports:
|
||||
# - "11434:11434"
|
||||
# networks:
|
||||
# - maxclaw-network
|
||||
|
||||
volumes:
|
||||
maxclaw-config:
|
||||
driver: local
|
||||
# ollama-data:
|
||||
# driver: local
|
||||
|
||||
networks:
|
||||
maxclaw-network:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user