P
Postiz•2mo ago
Support

Ticket: Docker-compose config issue with MAIN_URL and FRONTEND_URL

@Grigorij Just created a ticket
Question: Hey, I'm trying to install postiz locally with docker-compose, and I don't understand an MAIN_URL, FRONTEND_URL parameters of config. For me it's enough to have app running in localhost, not in some public website. I tried to provide localhost adress here or some random url, but in both cases there is same problem with backend: when clicking "register" button there is endless load and writing "General error: TypeError: NetworkError when attempting to fetch resource.. Please check your browser console.". Browser console provides just "INFO success: backend entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)"
Attempted: I tried to provide localhost adress here or some random url
Working On: Clean Coder AI autonomus coding app
Using Postiz On: docker-compose
Take it from here @Postiz
11 Replies
Oneil Walsh
Oneil Walsh•2mo ago
Hey, Can you put your dockerfile here please (caution to personal information).
Grigorij
Grigorij•2mo ago
Sure, it's just docker compose file copied from documentation with changed MAIN_URL parameter
Ariel
Ariel•2mo ago
ports: - 5000:5000 why are you using port 5777 in MAIN_URL and FRONTEND_URL?
Support
SupportOP•2mo ago
@Postiz please help @Grigorij
Grigorij
Grigorij•2mo ago
hey Ariel, why not? 😉 I mean, wich one should I use?
Ariel
Ariel•2mo ago
@Grigorij The docker-compose file maps the application's internal port 5000 to the host machine's port 5000 (ports: 5000:5000) Since Docker is exposing the app on port 5000 (both internally and externally), all URLs should reference port 5000 to correctly route traffic to the app. MAIN_URL: "http://localhost:5000" FRONTEND_URL: "http://localhost:5000" NEXT_PUBLIC_BACKEND_URL: "http://localhost:5000/api" or ports: - 5777:5000 after this restart the containers docker-compose down docker-compose up -d
Grigorij
Grigorij•2mo ago
It started work with 5000, thanks for info. I suggest to write info about using port 5000 in the docs (or just put MAIN_URL: "http://localhost:5000" as default value in docker compose) as it very unclear now.
Grigorij
Grigorij•2mo ago
buy the way, I have an error when trying to connect any medium (please tell if I need to open separate ticket)
No description
Ariel
Ariel•2mo ago
Hi @Grigorij , you'll need to configure each provider separately. You can follow the documentation for LinkedIn here: https://docs.postiz.com/providers/linkedin
Postiz Documentation
Linkedin - Postiz Docs
Postiz - Open source social media scheduling tool
Grigorij
Grigorij•2mo ago
Ok, thank you for info
Grigorij
Grigorij•2mo ago
@Ariel when I'm trying to create linkedin app according to that docs, it saying that I need to provide company page, with individual page it not works.
No description

Did you find this page helpful?