# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 🚀 BUILT & MAINTAINED BY THE ALTSTACK
# 🌍 https://thealtstack.com
# 💡 Open-source deployment templates for modern self-hosting.
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# Ceph (Demo Mode): Enterprise-grade unified storage for block, object, and file.
# Single-container demo with dashboard and S3-compatible object gateway.

services:
  ceph:
    image: quay.io/ceph/demo:latest
    container_name: ceph-demo
    privileged: true
    restart: unless-stopped
    ports:
      - "5000:5000" # Dashboard
      - "8080:8080" # RGW (S3-compatible)
      - "6789:6789" # Monitor
    environment:
      - MON_IP=127.0.0.1
      - CEPH_PUBLIC_NETWORK=0.0.0.0/0
      - CEPH_DEMO_UID=demo
      - CEPH_DEMO_ACCESS_KEY=demo
      - CEPH_DEMO_SECRET_KEY=demo
      - CEPH_DEMO_BUCKET=demobucket
      - DEMO_DAEMONS=all
    volumes:
      - ceph_data:/var/lib/ceph
      - ceph_config:/etc/ceph

volumes:
  ceph_data:
  ceph_config:
