More Related Content
Similar to ヤギにサーバーを管理してもらう話 (20)
More from Masaki Kobayashi (7)
ヤギにサーバーを管理してもらう話
- 4. 対象サーバーについて
Container
(www.makky.io)
# Dockerfile
FROM centos:centos7
…
RUN git clone https://github.com/makk...
RUN npm install && npm run build
RUN cp /dst/* /usr/share/nginx/html/
EXPOSE 80
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
Docker host
(*.makky.io:80)
Centos / Docker / Nginx
Proxy server
From To
www.makky.io 0.0.0.0:3940
home.makky.io 0.0.0.0:3941
… …
Container
(home.makky.io)
- 5. Docker host
(*.makky.io:80)
Centos / Docker / Nginx
Proxy server
対象サーバーについて
Container
(www.makky.io)
# Dockerfile
FROM centos:centos7
…
RUN git clone https://github.com/makk...
RUN npm install && npm run build
RUN cp /dst/* /usr/share/nginx/html/
EXPOSE 80
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
From To
www.makky.io 0.0.0.0:3940
home.makky.io 0.0.0.0:3941
… …
Container
(home.makky.io)
- 13. これから
• GitHubの草通知
• 指定したの時刻等でメッセージ送信
• ヤギを外部サーバーで飼いたい
• Docker hostの死活監視
• 例えば-> heroku
• 問題: herokuに鍵を置きたくない
• Nginxのログ収集 / 集計
• Docker 1.8 から Fluentd logging driver が使える
• 4xx / 5xx の件数をヤギに通知していただく