feat: Docker para CBC con acceso limitado
- Dockerfile minimal con Python 3.11 - docker-compose.yml con volumenes controlados - .dockerignore para build eficiente - Script de inicio start.sh - .env.example para configuración Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
34
docker/docker-compose.yml
Normal file
34
docker/docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
cbc-openclaw:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
container_name: cbc-openclaw
|
||||
volumes:
|
||||
# Solo montar las carpetas necesarias
|
||||
- ../:/app
|
||||
# Montar credenciales desde variables de entorno o archivo seguro
|
||||
- ~/.env:/app/.env:ro
|
||||
environment:
|
||||
# API Keys - pasar desde host
|
||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
||||
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN}
|
||||
- ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
|
||||
- ANTHROPIC_MODEL=MiniMax-M2.5
|
||||
# Configuración CBC
|
||||
- NEXTCLOUD_URL=${NEXTCLOUD_URL}
|
||||
- NEXTCLOUD_USER=${NEXTCLOUD_USER}
|
||||
- NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD}
|
||||
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
|
||||
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
|
||||
working_dir: /app
|
||||
command: ["python3", "main.py"]
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- cbc-network
|
||||
|
||||
networks:
|
||||
cbc-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user