Skip to content
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

临时参考方案:Run different projects with docker-compose profiles #1020

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

k997
Copy link

@k997 k997 commented Aug 6, 2023

This commit introduces the usage of Docker Compose profiles to run different projects with varying functionalities. By utilizing the profiles feature, we can now manage and switch between different project configurations easily.

Changes made in this commit include:

  • Added Docker Compose profiles for organizing project configurations
  • Updated the README file to document the usage of profiles
  • Modified the docker-compose.yml file to include multiple profile definitions

这次提交引入了使用 Docker Compose 的 profile 功能来运行具有不同功能的项目。通过利用 profile 功能,我们现在可以轻松地管理和切换不同的项目配置。

本次提交的主要更改包括:

  • 添加了 Docker Compose 的 profile,用于组织项目配置
  • 更新了 README 文件,以记录 profile 的使用方法
  • 修改了 docker-compose.yml 文件,包含多个 profile 定义

This commit introduces the usage of Docker Compose profiles to run different projects with varying functionalities. By utilizing the profiles feature, we can now manage and switch between different project configurations easily.

Changes made in this commit include:

- Added Docker Compose profiles for organizing project configurations
- Updated the README file to document the usage of profiles
- Modified the docker-compose.yml file to include multiple profile definitions

这次提交引入了使用 Docker Compose 的 profile 功能来运行具有不同功能的项目。通过利用 profile 功能,我们现在可以轻松地管理和切换不同的项目配置。

本次提交的主要更改包括:

- 添加了 Docker Compose 的 profile,用于组织项目配置
- 更新了 README 文件,以记录 profile 的使用方法
- 修改了 docker-compose.yml 文件,包含多个 profile 定义
@gitguardian
Copy link

gitguardian bot commented Aug 6, 2023

⚠️ GitGuardian has uncovered 5 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret f5f87d1 docker-compose.yml View secret
- Generic High Entropy Secret f5f87d1 docker-compose.yml View secret
- Generic High Entropy Secret f5f87d1 docker-compose.yml View secret
- Alibaba Cloud Keys f5f87d1 docker-compose.yml View secret
- Alibaba Cloud Keys f5f87d1 docker-compose.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@binary-husky
Copy link
Owner

binary-husky commented Aug 7, 2023

谢谢您,这样方便不少,但是我花时间需要学习一下这种docker-compose写法,之后我可能会把x-environment去掉(依然希望所有的配置都锦簇地放在一起,避免把配置拆分到不同地方带来的理解上的歧义)

@k997
Copy link
Author

k997 commented Aug 10, 2023

相对通用的配置放在一起可以方便用户切换不同方案。以代理地址为例,本人只有一个代理地址,在尝试不同方案过程中需要为不同方案反复配置相同的环境变量,复制粘贴不同的services文件,进行了很多重复工作,因此提出这个pr。

@Smiley23b
Copy link

image

@binary-husky binary-husky changed the title [Feature] Run different projects with docker-compose profiles 临时参考方案:Run different projects with docker-compose profiles Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants