# docker-compose.yml
services:
  qrusty:
    build:
      context: .
      dockerfile: Dockerfile
    image: qrusty:latest
    container_name: qrusty
    restart: unless-stopped
    ports:
      - "6784:6784"
    volumes:
      - qrusty-data:/data
    environment:
      - RUST_LOG=qrusty=info
      - QRUSTY_DATA_PATH=/data
      # - STORAGE_MODE=memory  # Uncomment to run without disk persistence
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:6784/health"]
      interval: 30s
      timeout: 3s
      retries: 3

volumes:
  qrusty-data:
    driver: local
