services:
  llamastack:
    image: llamastack/distribution-fireworks
    ports:
      - "8321:8321"
    environment:
      - FIREWORKS_API_KEY=${FIREWORKS_API_KEY}
    entrypoint: bash -c "python -m llama_stack.distribution.server.server --template fireworks"
    deploy:
      restart_policy:
        condition: on-failure
        delay: 3s
        max_attempts: 5
        window: 60s
