-
Notifications
You must be signed in to change notification settings - Fork 8k
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
base: master
Are you sure you want to change the base?
Conversation
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 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
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- 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
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 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!
谢谢您,这样方便不少,但是我花时间需要学习一下这种docker-compose写法,之后我可能会把x-environment去掉(依然希望所有的配置都锦簇地放在一起,避免把配置拆分到不同地方带来的理解上的歧义) |
相对通用的配置放在一起可以方便用户切换不同方案。以代理地址为例,本人只有一个代理地址,在尝试不同方案过程中需要为不同方案反复配置相同的环境变量,复制粘贴不同的services文件,进行了很多重复工作,因此提出这个pr。 |
7e21a7b
to
4b5f13b
Compare
f6266cd
to
9cced32
Compare
eb82912
to
9ea0fe4
Compare
9d25f8d
to
b1be050
Compare
9519f81
to
eac5191
Compare
b76132f
to
3890467
Compare
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:
这次提交引入了使用 Docker Compose 的 profile 功能来运行具有不同功能的项目。通过利用 profile 功能,我们现在可以轻松地管理和切换不同的项目配置。
本次提交的主要更改包括: