Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # The RAGFlow team do not actively maintain docker-compose-gpu.yml, so use them at your own risk.
  2. # However, you are welcome to file a pull request to improve it.
  3. include:
  4. - ./docker-compose-base.yml
  5. services:
  6. ragflow:
  7. depends_on:
  8. mysql:
  9. condition: service_healthy
  10. image: ${RAGFLOW_IMAGE}
  11. container_name: ragflow-server
  12. ports:
  13. - ${SVR_HTTP_PORT}:9380
  14. - 80:80
  15. - 443:443
  16. volumes:
  17. - ./ragflow-logs:/ragflow/logs
  18. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  19. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  20. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  21. env_file: .env
  22. environment:
  23. - TZ=${TIMEZONE}
  24. - HF_ENDPOINT=${HF_ENDPOINT}
  25. - MACOS=${MACOS}
  26. networks:
  27. - ragflow
  28. restart: on-failure
  29. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  30. # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
  31. extra_hosts:
  32. - "host.docker.internal:host-gateway"
  33. deploy:
  34. resources:
  35. reservations:
  36. devices:
  37. - driver: nvidia
  38. count: all
  39. capabilities: [gpu]