# ============================================================================= # 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:8333 (s3.stella-ops.local) # - Rekor v2 (tiles) on 127.1.1.4:3322 (rekor.stella-ops.local, opt-in sigstore-local profile) # - 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=8333", "-volume.port=8080", "-dir=/data"] volumes: - rustfs-data:/data ports: - "127.1.1.3:${RUSTFS_PORT:-8333}:8333" healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:8333/"] interval: 30s timeout: 10s retries: 3 rekor-v2: image: ${REKOR_TILES_IMAGE:-ghcr.io/sigstore/rekor-tiles:latest} container_name: stellaops-dev-rekor restart: on-failure:5 command: - rekor-server - serve - --http-address - 0.0.0.0 - --http-port - "3322" - --grpc-address - 0.0.0.0 - --grpc-port - "3323" - --signer-filepath - /etc/rekor/signer.pem - --gcp-bucket - ${REKOR_GCP_BUCKET:-stellaops-rekor-dev} - --gcp-spanner - ${REKOR_GCP_SPANNER:-projects/stellaops-dev/instances/rekor/databases/rekor} profiles: ["sigstore-local"] volumes: - rekor-tiles-data:/var/lib/rekor-tiles - ../../etc/authority/keys/signing-dev.pem:/etc/rekor/signer.pem:ro ports: - "127.1.1.4:${REKOR_PORT:-3322}:3322" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3322/api/v1/log"] 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: