build: añade docker-compose con dos servicios y healthchecks
core (8000) y dashboard (8501); dashboard depende de core service_healthy. Monta agents/ y policies/ read-only y data/ read-write en el core; el dashboard también monta agents/ ro para leer los escenarios. `docker compose config` valida. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
services:
|
||||||
|
core:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: core/Dockerfile
|
||||||
|
image: agentforge-core:dev
|
||||||
|
container_name: agentforge-core
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
DATA_DIR: /app/data
|
||||||
|
AGENTS_DIR: /app/agents
|
||||||
|
POLICIES_DIR: /app/policies
|
||||||
|
volumes:
|
||||||
|
- ./agents:/app/agents:ro
|
||||||
|
- ./policies:/app/policies:ro
|
||||||
|
- ./data:/app/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 3
|
||||||
|
start_period: 15s
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
dashboard:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: dashboard/Dockerfile
|
||||||
|
image: agentforge-dashboard:dev
|
||||||
|
container_name: agentforge-dashboard
|
||||||
|
depends_on:
|
||||||
|
core:
|
||||||
|
condition: service_healthy
|
||||||
|
ports:
|
||||||
|
- "8501:8501"
|
||||||
|
environment:
|
||||||
|
AGENTFORGE_CORE_URL: http://core:8000
|
||||||
|
volumes:
|
||||||
|
- ./agents:/app/agents:ro # para que el dashboard lea los escenarios
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user