Skip to content

Instantly share code, notes, and snippets.

@Jeket
Forked from zmts/dockerToLocalhost.md
Created October 25, 2021 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jeket/3bd6e33fa6b58d93deec50656789c79f to your computer and use it in GitHub Desktop.
Save Jeket/3bd6e33fa6b58d93deec50656789c79f to your computer and use it in GitHub Desktop.
Get access to localhost database from docker container

Get access to localhost database from docker container

  • Run containerized application on 0.0.0.0 address
  • Use host.docker.internal as database hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment