# docker-compose-include-samples **Repository Path**: AgentStudio/docker-compose-include-samples ## Basic Information - **Project Name**: docker-compose-include-samples - **Description**: docker-compose include拆分不同团队的服务配置 - **Primary Language**: Docker - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-18 - **Last Updated**: 2024-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 解决问题 ### 构建失败错误 failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount587080174/Dockerfile: no such file or directory 情况1:dockerfile文件名不正确,区分大小写,必须是Dockerfile 情况2:没有创建Dockerfile或者context指定的目录中不存在该文件。 ### env_file文件配置不生效 在compose.yml中,默认只能识别 .env文件,如果要自定义不同的环境配置文件比如:`.env.dev` 、`.env.prod` 等请使用cli方式,例如:`docker compose --env-file .env.dev up -d` 检查合并结果: `docker compose config > config.yml` 这样会得到一个合并后的结果,方便排错。