-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
docs: replace deprecated docker-compose v1 command with docker compose v2 #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -60,7 +60,7 @@ echo "AZURE_OPENAI_API_KEY=your_azure_openai_api_key" >> .env | |||||
| echo "AZURE_OPENAI_ENDPOINT=your_azure_openai_endpoint" >> .env | ||||||
| echo "AZURE_OPENAI_VERSION=your_azure_openai_version" >> .env | ||||||
| # Run with Docker Compose | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| For detailed instructions on using DeepWiki with Ollama and Docker, see [Ollama Instructions](Ollama-instruction.md). | ||||||
|
|
@@ -332,7 +332,7 @@ DEEPWIKI_EMBEDDER_TYPE=google | |||||
| Then run: | ||||||
|
|
||||||
| ```bash | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| ### Available Embedder Types | ||||||
|
|
@@ -384,7 +384,7 @@ python -m api.main | |||||
| ``` | ||||||
| Or with Docker Compose: | ||||||
| ```bash | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker-compose up | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker compose up | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The example uses
Suggested change
|
||||||
| ``` | ||||||
|
|
||||||
| When running with Docker Compose, the container's `api/logs` directory is bind-mounted to `./api/logs` on your host (see the `volumes` section in `docker-compose.yml`), ensuring log files persist across restarts. | ||||||
|
|
@@ -398,7 +398,7 @@ LOG_FILE_PATH=./debug.log | |||||
| Then simply run: | ||||||
|
|
||||||
| ```bash | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| **Logging Path Security Considerations:** In production environments, ensure the `api/logs` directory and any custom log file path are secured with appropriate filesystem permissions and access controls. The application enforces that `LOG_FILE_PATH` resides within the project's `api/logs` directory to prevent path traversal or unauthorized writes. | ||||||
|
|
@@ -482,7 +482,7 @@ Or use the provided `docker-compose.yml` file: | |||||
|
|
||||||
| ```bash | ||||||
| # Edit the .env file with your API keys first | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| (The `docker-compose.yml` file is pre-configured to mount `~/.adalflow` for data persistence, similar to the `docker run` command above.) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,7 +45,7 @@ echo "OPENROUTER_API_KEY=sua_chave_api_openrouter" >> .env | |||||
| echo "OLLAMA_HOST=seu_host_ollama" >> .env | ||||||
|
|
||||||
| # Execute com Docker Compose | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| Para instruções detalhadas sobre como usar o DeepWiki com Ollama e Docker, veja [Instruções do Ollama (em inglês)](Ollama-instruction.md). | ||||||
|
|
@@ -272,7 +272,7 @@ python -m api.main | |||||
| ``` | ||||||
| Ou com Docker Compose: | ||||||
| ```bash | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker-compose up | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker compose up | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The example uses
Suggested change
|
||||||
| ``` | ||||||
|
|
||||||
| Ao executar com Docker Compose, o diretório `api/logs` do container é montado em `./api/logs` no seu host (veja a seção `volumes` em `docker-compose.yml`), garantindo que os arquivos de log persistam entre reinicializações. | ||||||
|
|
@@ -286,7 +286,7 @@ LOG_FILE_PATH=./debug.log | |||||
| Então simplesmente execute: | ||||||
|
|
||||||
| ```bash | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| **Considerações de Segurança do Caminho de Logging:** Em ambientes de produção, garanta que o diretório `api/logs` e qualquer caminho de arquivo de log personalizado estejam protegidos com permissões de sistema de arquivos e controles de acesso apropriados. O aplicativo impõe que `LOG_FILE_PATH` resida dentro do diretório `api/logs` do projeto para evitar travessia de caminho ou escritas não autorizadas. | ||||||
|
|
@@ -349,7 +349,7 @@ Ou use o arquivo `docker-compose.yml` fornecido: | |||||
|
|
||||||
| ```bash | ||||||
| # Edite o arquivo .env com suas chaves API primeiro | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| (O arquivo `docker-compose.yml` é pré-configurado para montar `~/.adalflow` para persistência de dados, similar ao comando `docker run` acima.) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -48,7 +48,7 @@ echo "AZURE_OPENAI_API_KEY=ваш_azure_api_key" >> .env | |||||
| echo "AZURE_OPENAI_ENDPOINT=ваш_azure_endpoint" >> .env | ||||||
| echo "AZURE_OPENAI_VERSION=ваша_azure_version" >> .env | ||||||
| # Запуск через Docker Compose | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| Подробную инструкцию по работе с Ollama и Docker см. в [Ollama Instructions](Ollama-instruction.md). | ||||||
|
|
@@ -275,7 +275,7 @@ python -m api.main | |||||
|
|
||||||
| Или через Docker Compose: | ||||||
| ```bash | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker-compose up | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker compose up | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The example uses
Suggested change
|
||||||
| ``` | ||||||
|
|
||||||
| Для постоянства логов при перезапуске контейнера `api/logs` монтируется в `./api/logs`. | ||||||
|
|
@@ -290,7 +290,7 @@ LOG_FILE_PATH=./debug.log | |||||
| И просто выполнить: | ||||||
|
|
||||||
| ```bash | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| **Безопасность логов:** в продакшене важно настроить права доступа к `api/logs`, чтобы исключить несанкционированный доступ или запись. | ||||||
|
|
@@ -357,7 +357,7 @@ docker run -p 8001:8001 -p 3000:3000 \ | |||||
|
|
||||||
| ```bash | ||||||
| # Убедитесь, что .env заполнен | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| #### Использование .env | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,7 +45,7 @@ echo "OPENROUTER_API_KEY=your_openrouter_api_key" >> .env | |||||
| echo "OLLAMA_HOST=your_ollama_host" >> .env | ||||||
|
|
||||||
| # 使用 Docker Compose 執行 | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| 有關使用 DeepWiki 搭配 Ollama 和 Docker 的詳細說明,請參閱 [Ollama 操作說明](Ollama-instruction.md)。 | ||||||
|
|
@@ -279,7 +279,7 @@ python -m api.main | |||||
| ``` | ||||||
| 或使用 Docker Compose: | ||||||
| ```bash | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker-compose up | ||||||
| LOG_LEVEL=DEBUG LOG_FILE_PATH=./debug.log docker compose up | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The example uses
Suggested change
|
||||||
| ``` | ||||||
|
|
||||||
| 使用 Docker Compose 執行時,容器的 `api/logs` 目錄會掛載到主機上的 `./api/logs`(請參閱 `docker-compose.yml` 中的 `volumes` 區段),確保日誌檔案在重新啟動後仍然存在。 | ||||||
|
|
@@ -293,7 +293,7 @@ LOG_FILE_PATH=./debug.log | |||||
| 然後簡單執行: | ||||||
|
|
||||||
| ```bash | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| **日誌路徑安全性考量:** 在生產環境中,請確保 `api/logs` 目錄和任何自訂日誌檔案路徑都受到適當的檔案系統權限和存取控制保護。應用程式會強制要求 `LOG_FILE_PATH` 位於專案的 `api/logs` 目錄內,以防止路徑遍歷或未授權的寫入。 | ||||||
|
|
@@ -356,7 +356,7 @@ docker run -p 8001:8001 -p 3000:3000 \ | |||||
|
|
||||||
| ```bash | ||||||
| # 首先使用您的 API 金鑰編輯 .env 檔案 | ||||||
| docker-compose up | ||||||
| docker compose up | ||||||
| ``` | ||||||
|
|
||||||
| (`docker-compose.yml` 檔案預先設定為掛載 `~/.adalflow` 以保持資料持續性,類似於上面的 `docker run` 命令。) | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses
LOG_FILE_PATH=./debug.log, but the documentation (line 307) states that the application enforces the log file to be within theapi/logsdirectory for security reasons. Using./debug.logwill likely result in an error due to path traversal prevention.