44 lines
1014 B
YAML
44 lines
1014 B
YAML
services:
|
|
core:
|
|
build:
|
|
context: .
|
|
dockerfile: core/Dockerfile
|
|
image: forja-core:dev
|
|
container_name: forja-core
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
DATA_DIR: /app/data
|
|
AGENTS_DIR: /app/agents
|
|
POLICIES_DIR: /app/policies
|
|
volumes:
|
|
- ./agents:/app/agents:rw
|
|
- ./policies:/app/policies:rw
|
|
- ./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: forja-dashboard:dev
|
|
container_name: forja-dashboard
|
|
depends_on:
|
|
core:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8501:8501"
|
|
environment:
|
|
FORJA_CORE_URL: http://core:8000
|
|
volumes:
|
|
- ./agents:/app/agents:rw # rw para editores gráficos + escenarios
|
|
restart: unless-stopped
|