P
Postiz3mo ago
Support

Ticket: "Invalid DB credentials on new install"

@heps Just created a ticket
Question: I can’t login on new installation
Attempted: I’m trying to setup the app using the docker compose file that you provided. Just copy-pasted from website. It says “the provided database credentials for postiz-user are not valid”. What i’m doing wrong?
Working On: I’m working with docker compose on mac. I’m not using caddy, i just want to use localhost
Take it from here @Mod 🔥
10 Replies
GHOUL
GHOUL3mo ago
Heya @heps , did you change the ports in the docker-compose.yml for postiz-redis and postiz-postgres by any chance
heps
heps3mo ago
I tried to change the 3000 one. But then i just copy-pasted your example. Should I change something? If yes, it’s not clear that i have to
GHOUL
GHOUL3mo ago
It should work without changing anything apart from the URLs ofc which I presume you've already did. To localhost or a server owned by you. Also I'm not a developer on the postiz team, just someone like you. Had the same issue as you when I changed the ports and thought I could help
heps
heps3mo ago
Should i change the urla to https://localhost? Without any port? Can you provide an example, please?
GHOUL
GHOUL3mo ago
Sure, here is my .env file that works- (for my Ubuntu atleast)
# You must change these. Replace `postiz.your-server.com` with your DNS name - what your web browser sees.
MAIN_URL: "http://localhost:5000"
FRONTEND_URL: "http://localhost:5000"
NEXT_PUBLIC_BACKEND_URL: "http://localhost:5000/api"
JWT_SECRET: "anystringhere"

# These defaults are probably fine, but if you change your user/password, update it in the
# postiz-postgres or postiz-redis services below.
DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
REDIS_URL: "redis://postiz-redis:6379"
BACKEND_INTERNAL_URL: "http://localhost:5000/api"
# You must change these. Replace `postiz.your-server.com` with your DNS name - what your web browser sees.
MAIN_URL: "http://localhost:5000"
FRONTEND_URL: "http://localhost:5000"
NEXT_PUBLIC_BACKEND_URL: "http://localhost:5000/api"
JWT_SECRET: "anystringhere"

# These defaults are probably fine, but if you change your user/password, update it in the
# postiz-postgres or postiz-redis services below.
DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
REDIS_URL: "redis://postiz-redis:6379"
BACKEND_INTERNAL_URL: "http://localhost:5000/api"
The relevant part of the .env file ^
heps
heps3mo ago
Thanks! I’m going to try Do you know if i can change the default 3000 port to something like 3001:3000? With other apps i do this to change the default settings
GHOUL
GHOUL3mo ago
Yeah of course, You can change the ports, just that some ports are repeated twice in the .env file. Some people often edit one occurrence and forget to edit the second one leading to errors
GHOUL
GHOUL3mo ago
@heps My env file above was in reference to this recommendation. Nevo David is the creator of Postiz.
No description
xcons
xcons2mo ago
Hey folks, are you still having problems here? @GHOUL , @heps , do you still need help here?
GHOUL
GHOUL2mo ago
Nope

Did you find this page helpful?