services:
  luxd:
    container_name: luxd
    image: ghcr.io/luxfi/node:latest
    restart: unless-stopped
    ports:
      - "9630:9630"
      - "9631:9631"
    volumes:
      - luxd-data:/root/.luxd
    environment:
      LUXD_NETWORK_ID: "3"
      LUXD_HTTP_HOST: "0.0.0.0"
      LUXD_HTTP_PORT: "9630"
      LUXD_STAKING_PORT: "9631"
      LUXD_SYBIL_PROTECTION_ENABLED: "false"
      LUXD_STAKING_ENABLED: "false"
      LUXD_CONSENSUS_SAMPLE_SIZE: "1"
      LUXD_CONSENSUS_QUORUM_SIZE: "1"
      LUXD_LOG_LEVEL: "info"
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://localhost:9630/v1/health"]
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 60s
    deploy:
      resources:
        limits:
          cpus: "4"
          memory: 8G
        reservations:
          cpus: "2"
          memory: 4G

volumes:
  luxd-data:
