Repository navigation
Postgres and Oracle profile Compose files build backend and proxy outside the Docker context #110
Description
What is wrong
profiles/postgres/docker-compose.yml and profiles/oracle/docker-compose.yml cannot build the backend or proxy images. Both services set the build context to the component directory. The Dockerfiles copy shared/sitmun-shared from the parent back/ directory, which is outside that context.
Where
profiles/postgres/docker-compose.ymllines 41-43 set the backend context to../../back/backendwithdockerfile: Dockerfile. Lines 81-83 set the proxy context to../../back/proxy.profiles/oracle/docker-compose.ymllines 45-47 and 86-88 do the same.back/backend/Dockerfileline 7 copiesshared/sitmun-shared, and line 12 copiesbackend/sitmun-backend-core.back/proxy/Dockerfileline 7 copiesshared/sitmun-shared, and line 12 copiesproxy/sitmun-proxy-middleware.
Those COPY paths resolve when the context is back/. The root docker-compose.yml uses that context for the backend (lines 93-95) and the proxy (lines 137-139). They do not resolve from back/backend or back/proxy.
A Docker build was not run. The context and COPY paths are enough for the build to fail.
Why it matters
Each profile file tells a deployer to run docker compose up -d from profiles/postgres or profiles/oracle. That command cannot produce the backend or proxy image, so the standalone profiles do not start.
Fix
Delete profiles/postgres/docker-compose.yml and profiles/oracle/docker-compose.yml. The root docker-compose.yml already runs the same services: COMPOSE_PROFILES=postgres or oracle in profiles/postgres.env and profiles/oracle.env selects the database, and SITMUN_CONFIG_DIR selects the mounted profile folder. Repairing the contexts would keep two copies of the same services, which is how they drifted.
Order:
- Root Compose boots when the production secrets the README says are required are unset #113 makes the root compose file refuse to start without real secrets, which these two files enforce today. The development
.envfiles set their own development values. - Delete the two files. The instruction to run
docker compose up -dfromprofiles/postgresorprofiles/oraclelives only in those files. The README andpostgres.env/oracle.envalready saycp profiles/<name>.env .envat the root. - Check that
cp profiles/postgres.env .envanddocker compose up -dat the root starts the stack, and that the same works for Oracle.
The repository merge (#105) needs this first, because files that do not build cannot be checked by its docker compose build step.
Fallback, if the deletion must wait: set both services to context ../../back, with dockerfile: backend/Dockerfile and dockerfile: proxy/Dockerfile, matching the root compose file.
Activity
fix(docker): drop the standalone postgres and oracle compose files (#130
fjlopez commentedon Oct 27, 2026
Fixed on
devby #130 (37ed7c91).profiles/postgres/docker-compose.ymlandprofiles/oracle/docker-compose.ymlare absent on that branch.GitHub left this issue open because the pull request merged into
dev, and the repository default branch ismain.