app:
  id: mempool
  name: Mempool
  version: 2.5.0
  description: Bitcoin mempool and blockchain explorer. Real-time transaction and block visualization.
  
  container:
    image: mempool/mempool:v2.5.0
    image_signature: cosign://...
    pull_policy: if-not-present
    
  dependencies:
    - app_id: bitcoin-core
      version: ">=24.0"
    - storage: 20Gi
    
  resources:
    cpu_limit: 2
    memory_limit: 2Gi
    disk_limit: 20Gi
    
  security:
    capabilities: []
    readonly_root: true
    network_policy: isolated
    apparmor_profile: mempool
    
  ports:
    - host: 4080
      container: 4080
      protocol: tcp  # Web UI
    
  volumes:
    - type: bind
      source: /var/lib/archipelago/mempool
      target: /data
      options: [rw]
      
  environment:
    - MEMPOOL_BACKEND=electrum
    - MEMPOOL_BITCOIN_HOST=bitcoin-core
    - MEMPOOL_BITCOIN_PORT=8332
    - MEMPOOL_BITCOIN_USER=${BITCOIN_RPC_USER}
    - MEMPOOL_BITCOIN_PASSWORD=${BITCOIN_RPC_PASSWORD}
    
  health_check:
    type: http
    endpoint: http://localhost:4080
    path: /api/health
    interval: 30s
    timeout: 5s
    retries: 3
    
  bitcoin_integration:
    rpc_access: read-only
    sync_required: true
