Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
| # Creates a "dummy" network interface | |
| # we'll configure this interface with a link-local address | |
| # See: https://www.freedesktop.org/software/systemd/man/systemd.netdev.html | |
| ## | |
| [NetDev] | |
| Name=dummy0 | |
| Kind=dummy |
| #!/bin/bash | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Mathias Leppich <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost