Skip to content

Docker error when building scripts #115

@Yarrax

Description

@Yarrax

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions