Problem
docker-compose.prod.yml hardcodes the project name as name: "production" (line 2). This is inconsistent with how the other compose files work — docker-compose.yml and docker-compose-test.yml both read container names and other values from .env / .env.example, but the production compose file has a static project name baked in.
Additionally, the production compose file uses a dot-separated naming convention (docker-compose.prod.yml) while the test compose file uses a dash-separated convention (docker-compose-test.yml). This inconsistency makes it harder to discover and reference files.
Current behavior
docker-compose.prod.yml has name: "production" hardcoded on line 2
- File naming is inconsistent:
docker-compose-test.yml (dash) vs docker-compose.prod.yml (dot)
Expected behavior
- Rename
docker-compose.prod.yml → docker-compose-prod.yml to match the existing docker-compose-test.yml naming convention
- Read project name from
.env — add a COMPOSE_PROJECT_NAME variable (or similar) to .env / .env.example and reference it in the compose file instead of hardcoding name: "production"
Files to update
Context
The docker-compose.yml and docker-compose-test.yml files already follow the pattern of reading configuration from .env. This change brings the production compose file in line with that convention, making the setup more configurable and consistent.
Problem
docker-compose.prod.ymlhardcodes the project name asname: "production"(line 2). This is inconsistent with how the other compose files work —docker-compose.ymlanddocker-compose-test.ymlboth read container names and other values from.env/.env.example, but the production compose file has a static project name baked in.Additionally, the production compose file uses a dot-separated naming convention (
docker-compose.prod.yml) while the test compose file uses a dash-separated convention (docker-compose-test.yml). This inconsistency makes it harder to discover and reference files.Current behavior
docker-compose.prod.ymlhasname: "production"hardcoded on line 2docker-compose-test.yml(dash) vsdocker-compose.prod.yml(dot)Expected behavior
docker-compose.prod.yml→docker-compose-prod.ymlto match the existingdocker-compose-test.ymlnaming convention.env— add aCOMPOSE_PROJECT_NAMEvariable (or similar) to.env/.env.exampleand reference it in the compose file instead of hardcodingname: "production"Files to update
docker-compose.prod.yml→docker-compose-prod.ymlname: "production"withname: "${COMPOSE_PROJECT_NAME_PROD}"(or similar env var) in the renamed file.env.examplewith a sensible default (e.g.,COMPOSE_PROJECT_NAME_PROD=production).envaccordingly.github/README.md(lines 76, 87, 92)Context
The
docker-compose.ymlanddocker-compose-test.ymlfiles already follow the pattern of reading configuration from.env. This change brings the production compose file in line with that convention, making the setup more configurable and consistent.