Skip to content

Secrets config in docker-compose file may be missing something. #64

Closed

Description

@d-carmo

https://github.com/OpenZeppelin/openzeppelin-relayer/blame/43b016c4e5faa5ee1fedcdadccf3bc768962178e/docker-compose.yaml#L132-L135

Getting this output when trying to run docker-compose up:

~/openzeppelin-relayer$ docker-compose up ERROR: The Compose file './docker-compose.yaml' is invalid because: secrets.api_key value 'environment' does not match any of the regexes: '^x-' secrets.webhook_signing_key value 'environment' does not match any of the regexes: '^x-'

Activity

  1. tirumerla commented on Feb 24, 2025

    @tirumerla
    Contributor

    https://github.com/OpenZeppelin/openzeppelin-relayer/blame/43b016c4e5faa5ee1fedcdadccf3bc768962178e/docker-compose.yaml#L132-L135

    Getting this output when trying to run docker-compose up:

    ~/openzeppelin-relayer$ docker-compose up ERROR: The Compose file './docker-compose.yaml' is invalid because: secrets.api_key value 'environment' does not match any of the regexes: '^x-' secrets.webhook_signing_key value 'environment' does not match any of the regexes: '^x-'

    Thanks for raising this issue. Can you please post output for docker --version and docker-compose version ...In any case docker-compose "docker compose v1" is outdated python project which has now been deprecated and "docker compose v2" is using docker compose. If you can migrate to latest version of docker and use "docker compose" over "docker-compose" see if you are still getting the same error.

  2. tirumerla commented on Feb 24, 2025

    @tirumerla
    Contributor

    You can use this to switch from docker-compose v1 to docker compose v2 https://github.com/docker/compose-switch. Let me know how it goes.

  3. d-carmo commented on Feb 28, 2025

    @d-carmo
    ContributorAuthor

    Closing it - using docker compose v2 was the solution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersquestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions