{"id":305,"date":"2023-06-23T22:57:23","date_gmt":"2023-06-23T20:57:23","guid":{"rendered":"https:\/\/activum24.pl\/?p=305"},"modified":"2024-07-01T11:43:42","modified_gmt":"2024-07-01T09:43:42","slug":"npm-in-docker-swarm","status":"publish","type":"post","link":"https:\/\/activum24.pl\/index.php\/2023\/06\/23\/npm-in-docker-swarm\/","title":{"rendered":"NPM in Docker Swarm"},"content":{"rendered":"\n<p>Przenios\u0142em Nginx Proxy Manager pod Docker Swarm. Teraz jestem zabezpieczony przed awari\u0105 serwera. Docker Swarm realizuje funkcje wysokiej dost\u0119pno\u015bci (high availability, HA). W przypadku awarii jednego z serwer\u00f3w w klastrze kontener NPM uruchamiany jest na drugim dzia\u0142aj\u0105cym &#8211; dane kontenera NPM s\u0105 dost\u0119pne, bo  przechowywane s\u0105 na udziale glusterfs. <\/p>\n\n\n\n<p>docker service create &#8211;name proxy &#8211;replicas 1 -p 89:80 -p 40858:81 -p 34587:443 &#8211;mount type=bind,source=\/mnt\/glusterfs\/docker\/NPM\/data,destination=\/data &#8211;mount type=bind,source=\/mnt\/glusterfs\/docker\/NPM\/etc\/letsencrypt,destination=\/etc\/letsencrypt &#8211;constraint node.labels.fs==glusterfs jc21\/nginx-proxy-manager:latest<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Przenios\u0142em Nginx Proxy Manager pod Docker Swarm. Teraz jestem zabezpieczony przed awari\u0105 serwera. Docker Swarm realizuje funkcje wysokiej dost\u0119pno\u015bci (high availability, HA). W przypadku awarii jednego z serwer\u00f3w w klastrze kontener NPM uruchamiany jest na drugim dzia\u0142aj\u0105cym &#8211; dane kontenera NPM s\u0105 dost\u0119pne, bo przechowywane s\u0105 na udziale glusterfs. docker service create &#8211;name proxy &#8211;replicas&hellip;&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1],"tags":[54,55,123,124],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-hardware","tag-docker","tag-docker-swarm","tag-npm","tag-proxy"],"_links":{"self":[{"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":5,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/activum24.pl\/index.php\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}