ooo oo commited on
Commit
0f3e4bd
·
1 Parent(s): b0f30f5

remove version top-level element in the compose.yml file (#349)

Browse files

### What problem does this PR solve?

![image](https://github.com/infiniflow/ragflow/assets/106524776/56eec972-e92a-4cd2-92cc-4c20ba478a52)

- remove version top-level element in the compose.yml file
when use command `docker compose -f docker-compose-CN.yml up -d` ,it
will waring,[maybe it appear after
v25,5](https://github.com/mailcow/mailcow-dockerized/issues/5797#issuecomment-2011349228)

![image](https://github.com/infiniflow/ragflow/assets/106524776/e42ebfb7-d51e-4423-b6dd-3a7568a6be4f)

ref to
https://docs.docker.com/compose/intro/history/#docker-compose-cli-versioning
> Version one of the Docker Compose command-line binary was first
released in 2014. It was written in Python, and is invoked with
docker-compose. Typically, Compose V1 projects include a top-level
version element in the compose.yml file, with values ranging from 2.0 to
3.8, which refer to the specific [file
formats](https://docs.docker.com/compose/intro/history/#compose-file-format-versioning).

> Version two of the Docker Compose command-line binary was announced in
2020, is written in Go, and is invoked with docker compose. Compose V2
ignores the version top-level element in the compose.yml file.

Also in `README.MD` show `Docker >= 24.0.0 & Docker Compose >= v2.26.1`.
so i want to remove the version.

### Type of change

- [x] Other (please describe):
remove warning

docker/docker-compose-CN.yml CHANGED
@@ -1,6 +1,3 @@
1
- version: '2.2'
2
-
3
-
4
  include:
5
  - path: ./docker-compose-base.yml
6
  env_file: ./.env
 
 
 
 
1
  include:
2
  - path: ./docker-compose-base.yml
3
  env_file: ./.env
docker/docker-compose-base.yml CHANGED
@@ -1,5 +1,3 @@
1
- version: '2.2'
2
-
3
  services:
4
  es01:
5
  container_name: ragflow-es-01
 
 
 
1
  services:
2
  es01:
3
  container_name: ragflow-es-01
docker/docker-compose.yml CHANGED
@@ -1,5 +1,3 @@
1
- version: '2.2'
2
-
3
  include:
4
  - path: ./docker-compose-base.yml
5
  env_file: ./.env
 
 
 
1
  include:
2
  - path: ./docker-compose-base.yml
3
  env_file: ./.env