Skip to content

Docker containerization #353

Answered by manchenkoff
Jonston asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Jonston! This can be solved by naming you Laravel app the same way as domain would be. For example, Laravel container name - api.myapp.test.

Then you can setup an entry in your /etc/hosts (depends on your OS), to make api.myapp.test accessible from the web browser.

In this case, CSR requests will go to api.myapp.test -> resolved to docker -> passed into Laravel container
For SSR, requests will go directly to the container named api.myapp.test (they should be in the same network)

You can check more details in the following discussions:

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by manchenkoff
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@manchenkoff
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #352 on April 09, 2025 21:18.