Kayıtlar

Ağustos 29, 2016 tarihine ait yayınlar gösteriliyor

Haproxy ve arkada 2 nginx server yönlendirme

Resim
Docker kaynaklar https://hub.docker.com/r/million12/haproxy/ cd /etc/haproxy/haproxy.config dosyası http://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode Haproxy kaynaklar https://www.howtoforge.com/tutorial/how-to-setup-haproxy-as-load-balancer-for-nginx-on-centos-7/ http://samos-it.com/posts/docker-multi-website-single-ip-host-haproxy.html This post will describe how to expose multiple docker containers running websites on port 80 using HAproxy as a reverse proxy. This makes it possible to run multiple websites on different domains on a single public ip of the host. The basic setup is to create 1 container for haproxy which is exposed to the host on port 80. This HAproxy container will forward the incoming HTTP request to the correct container based on the domain name. Picture drawn with  draw.io . First launch the containers which run different websites. In our example we will use a  hello-world php demo

docker container ile çalışırken Error opening terminal:unknown hatası

Resim
Docker container ile çalışırken, container içinde herhangi bir komutu çalıştırmada aşağıdaki hatası alıyorsanız  docker container içine attach olabilmek için aşağıdaki komutları yazmanızı öneririm. burada nginx container name olarak geçiyor. nginx yerine kendi contaniner name yada contanier id girebilirsiniz. Böylece container içinde istediğiniz komutu çalıştırabilirsiniz. Daha fazla bilgi için  https://github.com/docker/docker/issues/9299 Eğer container kapatmadan çalışmak istiyorsanız  export TERM=xterm demeniz yeterli böylece uygulamalara istediğiniz ayarları yapabilirsiniz. Kaynak : http://stackoverflow.com/questions/27826241/running-nano-in-docker-container