mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-19 04:30:01 +08:00

### What problem does this PR solve? This pull request implements the feature mentioned in #3322. Instead of manually having to edit the `service_conf.yaml` file when changes have been made to `.env` and mapping it into the docker container at runtime, a template file is used and the values replaced by the environment variables from the `.env` file when the container is started. ### Type of change - [X] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com> Co-authored-by: Zhichang Yu <yuzhichang@gmail.com>
37 lines
855 B
YAML
37 lines
855 B
YAML
include:
|
|
- path: ./docker-compose-base.yml
|
|
env_file: ./.env
|
|
|
|
services:
|
|
ragflow:
|
|
depends_on:
|
|
mysql:
|
|
condition: service_healthy
|
|
es01:
|
|
condition: service_healthy
|
|
image: ${RAGFLOW_IMAGE}
|
|
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
|
|
environment:
|
|
- TZ=${TIMEZONE}
|
|
- HF_ENDPOINT=https://huggingface.co
|
|
- MACOS=${MACOS}
|
|
networks:
|
|
- ragflow
|
|
restart: always
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [gpu]
|