Skip to content

Instantly share code, notes, and snippets.

@jjhoncv
Last active November 19, 2018 23:13
Show Gist options
  • Save jjhoncv/a285a4d1d4006808971fa839f04eb4bc to your computer and use it in GitHub Desktop.
Save jjhoncv/a285a4d1d4006808971fa839f04eb4bc to your computer and use it in GitHub Desktop.
Network mac docker

Conection mac to Network

Mac

  • ip: 192.268.1.4

Docker

  • mysql:
    • host: docker.for.mac.localhost
    • port: 3306
  • redis:
    • host: docker.for.mac.localhost
    • port: 9292

Server

  • ip: 192.167.1.6
  • mysql: 3306

Forwarding ports

desde la mac se tiene que forwardear los puertos desde la mac al server con tunel 3306, 9292

Tunel

Abriendo puertos del server a la mac

ssh -f -N -L 3306:localhost:3306 [email protected]
ssh -f -N -L 9292:localhost:9292 [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment