Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Forked from zmts/dockerToLocalhost.md
Created October 21, 2021 19:42
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 spac3unit/885f419e10763c9762c67c75e8edb4db to your computer and use it in GitHub Desktop.
Save spac3unit/885f419e10763c9762c67c75e8edb4db 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