Skip to content
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

Using Traefik with booklogr #23

Open
joshuabaranski opened this issue Jan 22, 2025 · 1 comment
Open

Using Traefik with booklogr #23

joshuabaranski opened this issue Jan 22, 2025 · 1 comment
Labels
question Further information is requested

Comments

@joshuabaranski
Copy link

I'm not sure how to convince traefik to route the api and auth containers. I can access the web with my config, at booklogr.example.com but the nginx config suggests I would need to route api.example.com and auth.example.com which I'd rather do, but I'm not sure how else to configure it.

Additionally it was not clear in the docs, but I figured it out, that in the DATABASE_URL variable, you likely need to change "localhost" to the name of your container for it to work, or at least I did. Perhaps I glossed over where it says that.

@Mozzo1000
Copy link
Owner

Hi,
Thank you for showing interest in this project.
Sadly, I myself do not use Traefik and cannot help you in that regard.
What I can say though is that both api and auth need to be accessible for the user. The actual web container does not talk to any container.
There are also env variables that need to be set in the provided docker-compose.yml file for the web container related to api and auth endpoints,

BL_API_ENDPOINT=http://localhost:5000/ # CHANGE THIS TO POINT TO THE EXTERNAL ADRESS THE USER CAN ACCESS
BL_AUTH_ENDPOINT=http://localhost:5001 # CHANGE THIS TO POINT TO THE EXTERNAL ADRESS THE USER CAN ACCESS

Example for demo.booklogr.app the env variables look like this,

BL_API_ENDPOINT=https://api.demo.booklogr.app/ 
BL_AUTH_ENDPOINT=https://auth.demo.booklogr.app

>Additionally it was not clear in the docs, but I figured it out, that in the DATABASE_URL variable, you likely need to change "localhost" to the name of your container for it to work, or at least I did. Perhaps I glossed over where it says that.
Great input! I will add that information to the docs. May even change the example env file to point to container instead of localhost.

@Mozzo1000 Mozzo1000 added the question Further information is requested label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants