Docker 1.12 – Deploying Docker Services within Docker Swarm Mode and Docker Machine Source Repo: https://github.com/chrisleekr/docker-swarm-scalable-web-application-architecture This is proof-of-concept project to set up Docker Swarm in development environment with single command. This project involves: Docker Machine Docker Swarm – Docker Built-in Orchestration Local Docker Registry Docker Network Docker Service Note: This project is created for…
Month: September 2016
Raspberry pi에 Let’s Encrypt SSL 설치하기
Raspberry Pi의 IP를 알아낸다음에 Router에서 DMZ를 설정하여 외부 IP로 접속할 경우 Raspberry Pi로 접근이 되도록 한다. Raspberry Pi에 아파치를 설치한다. 설치방법: https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md 외부 IP로 접속하여 Apache 설치 여부를 확인한다. Raspberry Pi에 다이나믹 도메인을 연결한다 https://www.noip.com (무료) 에 가입을 한다 NoIP Dynamic Update Client를 다운로드 및 설치한다. 다운로드: https://www.noip.com/download?page=linux 설치방법: https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client-on-ubuntu/ 다이나믹 도메인 (http://xxxxx.ddns.net)에 접속이 되는지 확인한다….
Vagrant Scalable Web Application Architecture
Deploying scalable web application using Vagrant, Consul, Consul Template, nginx and HAProxy Source Repo: https://github.com/chrisleekr/vagrant-scalable-web-application-architecture This is proof-of-concept project to spin up scalable web application architecture with Vagrant. The project involves: Vagrant for launching multiple VM instances and persistent storage Consul for health checking and service discovery Consul Template for automated load balancer management nginx for…
Secure Raspberry Pi with iptables, PSAD, Fail2ban and OSSEC
Disable ping $ echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all Install iptables and iptables-persistent $ sudo apt-get install iptables iptables-persistent $ sudo service iptables-persistent start Create shell script $ nano reset_iptables.sh #!/usr/bin/env bash iptables -F iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -m conntrack –ctstate ESTABLISHED,RELATED…