2024-04-07 09:04:32 +08:00
include :
2024-11-12 14:59:41 +08:00
- ./docker-compose-base.yml
2024-07-26 10:52:56 +08:00
2024-04-07 09:04:32 +08:00
services :
2024-02-28 15:01:12 +08:00
ragflow :
depends_on :
2024-02-28 18:57:43 +08:00
mysql :
condition : service_healthy
2024-09-29 18:24:24 +08:00
image : ${RAGFLOW_IMAGE}
2024-02-28 15:01:12 +08:00
container_name : ragflow-server
ports :
- ${SVR_HTTP_PORT}:9380
2024-02-28 18:57:43 +08:00
- 80 : 80
- 443 : 443
2025-03-26 15:34:42 +08:00
- 5678 : 5678
- 5679 : 5679
2024-02-28 15:01:12 +08:00
volumes :
- ./ragflow-logs:/ragflow/logs
2024-02-29 12:50:01 +08:00
- ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
2025-03-19 14:22:53 +07:00
- ../history_data_agent:/ragflow/history_data_agent
2024-11-12 14:59:41 +08:00
env_file : .env
2024-03-05 12:08:41 +08:00
environment :
- TZ=${TIMEZONE}
2024-09-23 10:00:44 +08:00
- HF_ENDPOINT=${HF_ENDPOINT}
2024-06-14 10:33:59 +08:00
- MACOS=${MACOS}
2024-02-28 15:01:12 +08:00
networks :
- ragflow
2024-11-12 14:59:41 +08:00
restart : on -failure
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
2025-01-20 22:49:46 +08:00
# 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.
2024-10-23 01:43:21 -07:00
extra_hosts :
- "host.docker.internal:host-gateway"
2025-01-20 22:49:46 +08:00
# executor:
# depends_on:
# mysql:
# condition: service_healthy
# image: ${RAGFLOW_IMAGE}
# container_name: ragflow-executor
# volumes:
# - ./ragflow-logs:/ragflow/logs
# - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
# env_file: .env
# environment:
# - TZ=${TIMEZONE}
# - HF_ENDPOINT=${HF_ENDPOINT}
# - MACOS=${MACOS}
# entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
# networks:
# - ragflow
# 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"