Portainer 설치
sudo docker run --log-opt max-size=10m --log-opt max-file=20 --name portainer -p 9000:9000 -d --restart always -v /usr/docker/portainer/data:/data -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
my nginx for 게이트웨이 설치. default 오류 없애서 다시image 만듬.
$ sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 80:80 -v /usr/docker/nginxForGateway/etc/nginx/conf:/etc/nginx/conf --restart always --name nginxForGateway --network bridge -u root my-nginx-for-gateway
my 젠킨스 설치
sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 9090:8080 -v /usr/docker/jenkins/var/jenkins_home:/var/jenkins_home --restart always --name jenkins -u root hardcarry/jenkins:2.346.2-centos7-jdk8
젠킨스 SSH 이슈
my nginx for 톰캣 설치
sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 8880:80 -v /usr/docker/nginxForTomcat/usr/share/nginx/html:/usr/share/nginx/html -v /usr/docker/nginxForTomcat/etc/nginx/conf:/etc/nginx/conf --restart always --name nginxForTomcat --network bridge -u root my-nginx-for-tomcat
my 톰캣 설치 , 호스트시간과 일치하는 파라미터 추가 (-v /etc/localtime:/etc/localtime:ro)
sudo docker run --log-opt max-size=300m --log-opt max-file=2 -itd --name=tomcat8.5 -v /etc/localtime:/etc/localtime:ro -p 8080:8080 -p 8005:8005 -p 8443:8443 --restart=always -u root my-tomcat8.5
my 노드 설치
sudo docker run --log-opt max-size=10m --log-opt max-file=2 --restart always -itd -p 8092:8092 --name=node-menu -v /usr/docker/node-menu:/app my-node-menu
sudo docker run --log-opt max-size=10m --log-opt max-file=2 --restart always -itd -p 8098:8098 --name=node-grpah -v /usr/docker/node-graph:/app my-node-graph
sudo docker run --log-opt max-size=10m --log-opt max-file=2 --restart always -itd -p 8096:8096 --name=node-diagram -v /usr/docker/node-diagram:/app my-node-diagram
sudo docker run --log-opt max-size=10m --log-opt max-file=2 --restart always -itd -p 8094:8094 --name=node-alarm -v /usr/docker/node-alarm:/app my-node-alarm
my 몽고DB
sudo docker run --log-opt max-size=10m --log-opt max-file=2 --restart always -itd --name mongodb -v /usr/docker/mongodb/data -p 27017:27017 my-mongodb
my postgres 설치
sudo docker run --log-opt max-size=100m --log-opt max-file=3 -itd -p 5432:5432 -e POSTGRES_PASSWORD="postgres" --restart always --name postgres -u root my-postgres10
sfsb-api
sudo docker run --log-opt max-size=100m --log-opt max-file=3 -itd -p 9092:9092 --restart always --name sfsb-api -v /etc/localtime:/etc/localtime:ro -u root sfsb-api