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:
renato97
2026-02-25 17:44:09 +00:00
parent d50772d962
commit a7726365d7
6 changed files with 129 additions and 0 deletions

34
docker/docker-compose.yml Normal file
View 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