opf / opf/openproject-docker-compose

Docker error when building scripts

Open
#115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
342
Forks
315
PR merge metrics
No merged PRs in 30d

Description

Hi. I try to build control scripts by manual:

docker-compose -f docker-compose.yml -f docker-compose.control.yml build
and got same errors.
First of all, if use docker composes yaml files from repo:
Version mismatch: file ./docker-compose.yml specifies version 1 but extension file ./docker-compose.control.yml uses version 3.7

Okay. I try to use version 3.7 in docker-compose.yml. But got other errors:

#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./postgresql/data":/var/lib/postgresql/data:rw" is used in service "backup" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./assets":/var/openproject/assets:rw" is used in service "seeder" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./postgresql/data":/var/lib/postgresql/data:rw" is used in service "db" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./assets":/var/openproject/assets:rw" is used in service "seeder" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./postgresql/data":/var/lib/postgresql/data:rw" is used in service "backup" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./postgresql/data":/var/lib/postgresql/data:rw" is used in service "backup" but no declaration was found in the volumes section.
#docker-compose -f docker-compose.yml -f docker-compose.control.yml build
ERROR: Named volume ""./postgresql/data":/var/lib/postgresql/data:rw" is used in service "upgrade" but no declaration was found in the volumes section.

Cannot find any issue for this errors. What is right way? Change docker-compose.ym version to 3.7 b try to fix errors with Named volume?
But how?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing docker-compose.yml and docker-compose.control.yml, focusing on their Compose versions and the volume mounts reported in the build output. Reproduce the command docker-compose -f docker-compose.yml -f docker-compose.control.yml build; done means the files are compatible and the build no longer reports version or undeclared-volume errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.