Skip to content

docker-compose: FATAL: database "corteza" does not exist #447

@albjeremias

Description

@albjeremias

When initializing corteza with the configuration mentioned in here
i get this error:

server-1  | {"level":"warn","ts":1746309488.5232074,"logger":"store","msg":"could not connect to the database","error":"pq: database \"corteza\" does not exist","try":2,"delay":10}
db-1      | 2025-05-03 21:58:17.051 UTC [85] FATAL:  role "corteza" does not exist
db-1      | 2025-05-03 21:58:18.543 UTC [86] FATAL:  database "corteza" does not exist

the way to solve it was to add
POSTGRES_DB=corteza

to the env variables of the postgres image... I wanted to make a pull request.. but i found 4 places to change this settings...

Image

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