{"id":3503,"date":"2025-11-13T10:33:25","date_gmt":"2025-11-13T03:33:25","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=3503"},"modified":"2025-11-13T10:33:46","modified_gmt":"2025-11-13T03:33:46","slug":"publish-ports","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-container\/core-concepts\/publish-ports\/","title":{"rendered":"Publish ports"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"publish-ports\">Publish ports<\/h1>\n\n\n\n<p>\u0e42\u0e14\u0e22\u0e1b\u0e01\u0e15\u0e34\u0e41\u0e25\u0e49\u0e27 container \u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e30\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 network \u0e20\u0e32\u0e22\u0e19\u0e2d\u0e01 \u0e01\u0e32\u0e23 publish \u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14 port \u0e02\u0e2d\u0e07 container \u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e20\u0e32\u0e22\u0e19\u0e2d\u0e01\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 docker network \u0e42\u0e14\u0e22\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e14\u0e49\u0e1c\u0e48\u0e32\u0e19 option&nbsp;<code>--publish<\/code>&nbsp;\u0e2b\u0e23\u0e37\u0e2d&nbsp;<code>-p<\/code>&nbsp;\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07&nbsp;<code>docker run<\/code><\/p>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Flag<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>-p 8080:80<\/code><\/td><td>\u0e41\u0e21\u0e1e TCP port 80 \u0e02\u0e2d\u0e07 container \u0e44\u0e1b\u0e17\u0e35\u0e48 port 8080 \u0e02\u0e2d\u0e07 host<\/td><\/tr><tr><td><code>-p 192.168.1.100:8080:80<\/code><\/td><td>\u0e41\u0e21\u0e1e TCP port 80 \u0e02\u0e2d\u0e07 container \u0e44\u0e1b\u0e17\u0e35\u0e48 port 8080 \u0e02\u0e2d\u0e07 host \u0e17\u0e35\u0e48 IP address 192.168.1.100<\/td><\/tr><tr><td><code>-p 8080:80\/udp<\/code><\/td><td>\u0e41\u0e21\u0e1e UDP port 80 \u0e02\u0e2d\u0e07 container \u0e44\u0e1b\u0e17\u0e35\u0e48 port 8080 \u0e02\u0e2d\u0e07 host<\/td><\/tr><tr><td><code>-p 8080:80\/tcp -p 8080:80\/udp<\/code><\/td><td>\u0e41\u0e21\u0e1e TCP port 80 \u0e44\u0e1b\u0e17\u0e35\u0e48 TCP port 8080 \u0e02\u0e2d\u0e07 host \u0e41\u0e25\u0e30 UDP port 80 \u0e02\u0e2d\u0e07 container \u0e44\u0e1b\u0e17\u0e35\u0e48 UDP port 8080 \u0e02\u0e2d\u0e07 host<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":3499,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-3503","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=3503"}],"version-history":[{"count":1,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3503\/revisions"}],"predecessor-version":[{"id":3504,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3503\/revisions\/3504"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3499"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=3503"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=3503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}