Make Docker host ports configurable in development mode #1409
Replies: 1 comment
-
Ok, I see: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
On my dev machine, port 8000 is already busy, so I was trying to introduce an optional environment variable
BACKEND_HOST_PORT
, which defaults to 8000.I assumed that changing the two lines tagged with
# MODIFIED
like above should be sufficient.But after
docker compose watch
I get Cross-Origin error in the console of the browser and I see it tries to access http://localhost:8000/api/v1/users/meSo it looks like I missed something. Maybe similar modifications for the other host ports, which might be occupied as well, might make sense as well.
Operating System
Windows
Operating System Details
Windows 10, Docker Desktop 4.34.3, Firefox 131.0.3
Python Version
local: 3.11.9, but backend is based on 3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions