105 lines
3.1 KiB
YAML
105 lines
3.1 KiB
YAML
# =============================================================================
|
|
# DEVELOPMENT STACK - MINIMAL LOCAL DEVELOPMENT
|
|
# =============================================================================
|
|
# Minimal infrastructure for local development. Use this when you only need
|
|
# the core infrastructure without all application services.
|
|
#
|
|
# For full platform, use docker-compose.stella-ops.yml instead.
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.dev.yml up -d
|
|
#
|
|
# This provides:
|
|
# - PostgreSQL 18.1 on 127.1.1.1:5432 (db.stella-ops.local)
|
|
# - Valkey 9.0.1 on 127.1.1.2:6379 (cache.stella-ops.local)
|
|
# - SeaweedFS (S3) on 127.1.1.3:8080 (s3.stella-ops.local)
|
|
# - Rekor v2 (tiles) on 127.1.1.4:3322 (rekor.stella-ops.local)
|
|
# - Zot (OCI registry) on 127.1.1.5:80 (registry.stella-ops.local)
|
|
# =============================================================================
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:18.1-alpine
|
|
container_name: stellaops-dev-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-stellaops}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-stellaops}
|
|
POSTGRES_DB: ${POSTGRES_DB:-stellaops_dev}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
- ./postgres-init:/docker-entrypoint-initdb.d:ro
|
|
ports:
|
|
- "127.1.1.1:${POSTGRES_PORT:-5432}:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-stellaops}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
valkey:
|
|
image: valkey/valkey:9.0.1-alpine
|
|
container_name: stellaops-dev-valkey
|
|
restart: unless-stopped
|
|
command: ["valkey-server", "--appendonly", "yes"]
|
|
volumes:
|
|
- valkey-data:/data
|
|
ports:
|
|
- "127.1.1.2:${VALKEY_PORT:-6379}:6379"
|
|
healthcheck:
|
|
test: ["CMD", "valkey-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
rustfs:
|
|
image: chrislusf/seaweedfs:latest
|
|
container_name: stellaops-dev-rustfs
|
|
restart: unless-stopped
|
|
command: ["server", "-s3", "-s3.port=8080", "-dir=/data"]
|
|
volumes:
|
|
- rustfs-data:/data
|
|
ports:
|
|
- "127.1.1.3:${RUSTFS_PORT:-8080}:8080"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8080/status"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
rekor-v2:
|
|
image: ${REKOR_TILES_IMAGE:-ghcr.io/sigstore/rekor-tiles:latest}
|
|
container_name: stellaops-dev-rekor
|
|
restart: unless-stopped
|
|
volumes:
|
|
- rekor-tiles-data:/var/lib/rekor-tiles
|
|
ports:
|
|
- "127.1.1.4:${REKOR_PORT:-3322}:3322"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3322/healthz"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
registry:
|
|
image: ghcr.io/project-zot/zot-linux-amd64:v2.1.3
|
|
container_name: stellaops-dev-registry
|
|
restart: unless-stopped
|
|
volumes:
|
|
- registry-data:/var/lib/registry
|
|
- ./zot-config.json:/etc/zot/config.json:ro
|
|
ports:
|
|
- "127.1.1.5:80:5000"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:5000/v2/"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
volumes:
|
|
postgres-data:
|
|
valkey-data:
|
|
rustfs-data:
|
|
rekor-tiles-data:
|
|
registry-data:
|