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
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
Hey,
Can you put your dockerfile here please (caution to personal information).
Sure, it's just docker compose file copied from documentation with changed MAIN_URL parameter
ports:
- 5000:5000
why are you using port 5777 in MAIN_URL and FRONTEND_URL?@Postiz please help @Grigorij
hey Ariel, why not? 😉 I mean, wich one should I use?
@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
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.
buy the way, I have an error when trying to connect any medium (please tell if I need to open separate ticket)
Hi @Grigorij , you'll need to configure each provider separately.
You can follow the documentation for LinkedIn here: https://docs.postiz.com/providers/linkedin
Ok, thank you for info
@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.