Sign inSign up

ctlc/amb-serf

By ctlc

Updated almost 11 years ago

Image
1

1.1K

ctlc/amb-serf repository overview

ctlc-docker-amb-serf

Note: Inspired by svendowideit/ambassador, but it is not a Trusted Image and uses top to keep-alive which uses too much CPU. This version uses watch ls instead and is a Trusted Image.

Ambassador Pattern Linking

Ambassadors are containers who's sole purpose is to help connect containers across multiple hosts.

Read more at http://www.centurylinklabs.com/ambassadors-how-to-link-docker-containers-across-servers

# start serf agent
$ docker run -d --name serf_1 ctlc/serf

# start actual MySQL server
$ docker run -d --name mysql ctlc/mysql

# then to run it (on the host that has the real backend on it)
$ docker run -d --link mysql:mysql --link serf_1:serf_1 --name mysql_ambassador -p 3306:3306 ctlc/amb-serf

# on the remote host, you can set up another ambassador setting environment variables for each remote port we want to proxy
$ docker run -d --name mysql_ambassador_proxy -p 3306 -e MYSQL_PORT_3306_TCP=tcp://172.17.42.1:3306 ctlc/ambassador

Tag summary

Content type

Image

Digest

sha256:8f1e6641e

Size

78.1 MB

Last updated

almost 11 years ago

docker pull ctlc/amb-serf