2024-12-13 18:57:22 +08:00
# The RAGFlow team do not actively maintain docker-compose-gpu.yml, so use them at your own risk.
2025-02-18 13:42:06 +08:00
# Pull requests to improve it are welcome.
2024-07-18 15:45:12 +08:00
include :
2024-11-29 10:49:15 +08:00
- ./docker-compose-base.yml
2024-07-18 15:45:12 +08:00
services :
ragflow :
depends_on :
mysql :
condition : service_healthy
2024-09-29 18:24:24 +08:00
image : ${RAGFLOW_IMAGE}
2024-07-18 15:45:12 +08:00
container_name : ragflow-server
ports :
- ${SVR_HTTP_PORT}:9380
- 80 : 80
- 443 : 443
volumes :
- ./ragflow-logs:/ragflow/logs
- ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
2024-11-29 10:49:15 +08:00
env_file : .env
2024-07-18 15:45:12 +08:00
environment :
- TZ=${TIMEZONE}
2024-11-29 10:49:15 +08:00
- HF_ENDPOINT=${HF_ENDPOINT}
2024-07-18 15:45:12 +08:00
- MACOS=${MACOS}
networks :
- ragflow
2024-11-29 10:49:15 +08:00
restart : on -failure
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# 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.
extra_hosts :
- "host.docker.internal:host-gateway"
2024-07-18 15:45:12 +08:00
deploy :
resources :
reservations :
devices :
- driver : nvidia
count : all
capabilities : [ gpu]