devops folders consolidate
This commit is contained in:
@@ -127,7 +127,6 @@ docker compose -f docker-compose.dev.yaml up -d
|
||||
- PostgreSQL v16+ (port 5432) - Primary database for all services
|
||||
- Valkey 8.0 (port 6379) - Cache, DPoP nonces, event streams, rate limiting
|
||||
- RustFS (port 8080) - S3-compatible object storage for artifacts/SBOMs
|
||||
- NATS JetStream (port 4222) - Optional transport (only if configured)
|
||||
- Authority (port 8440) - OAuth2/OIDC authentication
|
||||
- Signer (port 8441) - Cryptographic signing
|
||||
- Attestor (port 8442) - in-toto attestation generation
|
||||
@@ -250,26 +249,6 @@ All services follow this configuration priority (highest to lowest):
|
||||
}
|
||||
```
|
||||
|
||||
#### NATS Queue Configuration (Optional Alternative Transport)
|
||||
|
||||
```json
|
||||
{
|
||||
"Scanner": {
|
||||
"Events": {
|
||||
"Driver": "nats",
|
||||
"Dsn": "nats://localhost:4222"
|
||||
}
|
||||
},
|
||||
"Scheduler": {
|
||||
"Queue": {
|
||||
"Kind": "Nats",
|
||||
"Nats": {
|
||||
"Url": "nats://localhost:4222"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### RustFS Configuration (S3-Compatible Object Storage)
|
||||
|
||||
@@ -489,25 +468,25 @@ docker network inspect compose_stellaops
|
||||
}
|
||||
```
|
||||
|
||||
#### 3. NATS Connection Refused
|
||||
#### 3. Queue Connection Refused
|
||||
|
||||
**Error:**
|
||||
```
|
||||
NATS connection error: connection refused
|
||||
Connection error: connection refused
|
||||
```
|
||||
|
||||
**Solution:**
|
||||
|
||||
By default, services use **Valkey** for messaging, not NATS. Ensure Valkey is running:
|
||||
Services use **Valkey** for messaging. Ensure Valkey is running:
|
||||
```bash
|
||||
docker compose -f docker-compose.dev.yaml ps valkey
|
||||
docker compose -f docker-compose.stella-ops.yml ps valkey
|
||||
# Should show: State = "Up"
|
||||
|
||||
# Test connectivity
|
||||
telnet localhost 6379
|
||||
```
|
||||
|
||||
Update configuration to use Valkey (default):
|
||||
Configuration should use Valkey:
|
||||
```json
|
||||
{
|
||||
"Scanner": {
|
||||
@@ -527,22 +506,6 @@ Update configuration to use Valkey (default):
|
||||
}
|
||||
```
|
||||
|
||||
**If you explicitly want to use NATS** (optional):
|
||||
```bash
|
||||
docker compose -f docker-compose.dev.yaml ps nats
|
||||
# Ensure NATS is running
|
||||
|
||||
# Update appsettings.Development.json:
|
||||
{
|
||||
"Scanner": {
|
||||
"Events": {
|
||||
"Driver": "nats",
|
||||
"Dsn": "nats://localhost:4222"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### 4. Valkey Connection Refused
|
||||
|
||||
**Error:**
|
||||
@@ -694,7 +657,6 @@ sudo docker compose -f docker-compose.dev.yaml up -d
|
||||
- Understand PostgreSQL schema isolation (all services use PostgreSQL)
|
||||
- Learn Valkey streams for event queuing and caching
|
||||
- Study RustFS S3-compatible object storage
|
||||
- Optional: NATS JetStream as alternative transport
|
||||
|
||||
2. **Week 2: Core Services**
|
||||
- Deep dive into Scanner architecture (analyzers, workers, caching)
|
||||
@@ -733,8 +695,8 @@ sudo docker compose -f docker-compose.dev.yaml up -d
|
||||
|
||||
```bash
|
||||
# Start full platform
|
||||
cd deploy\compose
|
||||
docker compose -f docker-compose.dev.yaml up -d
|
||||
cd devops\compose
|
||||
docker compose -f docker-compose.stella-ops.yml up -d
|
||||
|
||||
# Stop a specific service for debugging
|
||||
docker compose -f docker-compose.dev.yaml stop <service-name>
|
||||
@@ -771,7 +733,6 @@ dotnet run
|
||||
| PostgreSQL | 5432 | `localhost:5432` | Primary database (REQUIRED) |
|
||||
| Valkey | 6379 | `localhost:6379` | Cache/events/queues (REQUIRED) |
|
||||
| RustFS | 8080 | http://localhost:8080 | S3-compatible storage (REQUIRED) |
|
||||
| NATS | 4222 | `nats://localhost:4222` | Optional alternative transport |
|
||||
| **Services** |
|
||||
| Authority | 8440 | https://localhost:8440 | OAuth2/OIDC auth |
|
||||
| Signer | 8441 | https://localhost:8441 | Cryptographic signing |
|
||||
|
||||
Reference in New Issue
Block a user