Files
devops-it-manual/ops/jenkins/deployment-diagram.tex

21 lines
1.5 KiB
TeX

\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[font=\small,box/.style={draw,rounded corners,align=center,text width=2.8cm,minimum height=1.3cm},arr/.style={-{Latex[length=2mm]},thick}]
\node[box,text width=2.3cm] (browser) at (0,0) {\guillemotleft device\guillemotright\\Team browser};
\node[box,text width=2.6cm] (fw) at (3.8,0) {Cloud Firewall\\TCP 443\\HTTP 80 for redirect};
\node[box] (proxy) at (10.8,0) {\guillemotleft container\guillemotright\\Caddy TLS proxy};
\node[box,text width=3.0cm] (jenkins) at (8.0,-3.8) {\guillemotleft container\guillemotright\\Jenkins controller\\checkout and tests};
\node[box] (gitea) at (13.5,-3.8) {\guillemotleft container\guillemotright\\Gitea :3000};
\node[box] (jh) at (8.0,-6.5) {Jenkins home\\host bind mount};
\node[box] (gd) at (13.5,-6.5) {Gitea data\\SQLite + repositories};
\draw[dashed] (6.0,1.2) rectangle (15.5,-7.5);
\node[align=center] at (10.75,1.6) {\guillemotleft device\guillemotright\ DigitalOcean Droplet 165.227.90.215};
\draw[arr] (browser)--(fw);
\draw[arr] (fw)--node[above]{HTTPS}(proxy);
\draw[arr] (proxy)--node[left=2mm,align=right]{private\\:8080}(jenkins);
\draw[arr] (proxy)--node[right=2mm,align=left]{private\\:3000}(gitea);
\draw[arr] ([yshift=3mm]jenkins.east)--node[above,align=center,font=\footnotesize]{poll / checkout\\commit status}([yshift=3mm]gitea.west);
\draw[arr] ([yshift=-3mm]gitea.west)--node[below,align=center,font=\footnotesize]{API / Git\\responses}([yshift=-3mm]jenkins.east);
\draw[arr] (jenkins)--(jh);
\draw[arr] (gitea)--(gd);
\end{tikzpicture}}