-
Notifications
You must be signed in to change notification settings - Fork 1.2k
with docker-compose.yml "Root or postgres or any role does not exist", postgres, postgrest, swagger connect to db #756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Your error https://github.com/docker-library/docs/tree/master/postgres#environment-variables
You might also try using a named volume instead |
First of all thanks for your quick response. However, what do you mean with in the host's ./pgdata . The only time i use it is in the .yml
|
The folder being used as the data directory You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum |
alright, yea i will try it there, too. Just could you please tell me how i can find the data directory to ./pgdata:/var/lib/postgresql/data ? #203 didn't help for me either. I want to inspect it. So all in all you can't tell me why this problem appears? i'm learning a lot but going insane too... Thank you a lot! |
You are not technically using a |
Ok, I see that point.. so the big question is, how can I delete that folder in the container? There is no problem for me to delete anything in the database, because it's empty and I'll put in data after i can bring up an API for postgres ... Thank you guys! :) i tried this before docker system prune -a |
The point is that it is not in the container. Just delete the folder: |
I'm not sure why or how this actually works, but I was hung up on this issue for a while now. I had a postgres service where I specified an
Here's the docker-compose excerpt:
Outputting my config showed that all of those vars WERE being set, except for
I noticed that the order of environment variables differed slightly from how I defined them in my So I changed my
Now, running
References: #203 |
I had the same issue, i proactively remove the volumes |
delete and create the postgres_data folder and run |
Thank you, it's help me. (+ removed all containers and start from scratch) |
In the future, these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Forums, the Docker Community Slack, or Stack Overflow. |
After run command again |
Hi,
i'm new to docker and need your help .. i just cant find any solution. Trying to connect to the DB via docker-compse.yml.
I'm using this docker-compose.yml
docker-compose.yml
maybe there is a problem with starting the container without the env variables set. So it was then initialized without user or DB info?
Thank you!
The text was updated successfully, but these errors were encountered: