{"id":40529,"date":"2025-12-15T07:50:21","date_gmt":"2025-12-15T07:50:21","guid":{"rendered":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/linux-operating-systems\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/"},"modified":"2026-07-17T08:21:15","modified_gmt":"2026-07-17T08:21:15","slug":"how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker","status":"publish","type":"docs","link":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/","title":{"rendered":"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker"},"content":{"rendered":"<p>BTCPay Server is an open-source, self-hosted payment processor for Bitcoin and other cryptocurrencies. It enables merchants and businesses to accept Bitcoin payments directly without relying on third-party payment processors or intermediaries. BTCPay Server offers merchants a secure, privacy-focused, and customizable payment processing solution for accepting Bitcoin and other cryptocurrencies.<\/p>\n<p>In this tutorial, we will show you how to install the BTCPay server on Ubuntu 22.04.<span id=\"more-68871\"><\/span><\/p>\n<p><iframe title=\"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker | VPS Tutorial\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/Vx8UL-ZRsUo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2 id=\"step-1-install-docker-ce\">Step 1 \u2013 Install Docker CE<\/h2>\n<p>Install the packages necessary to add a new repository over HTTPS:<\/p>\n<pre>apt install apt-transport-https ca-certificates git\r\n<\/pre>\n<p>Add Docker\u2019s official repository and GPG key to your system:<\/p>\n<pre>echo \"deb [signed-by=\/etc\/apt\/keyrings\/docker.gpg.key arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\" | tee \/etc\/apt\/sources.list.d\/docker.list\r\nwget --quiet -O - https:\/\/download.docker.com\/linux\/ubuntu\/gpg | tee \/etc\/apt\/keyrings\/docker.gpg.key\r\n<\/pre>\n<p>After adding the repository, update the package index:<\/p>\n<pre>apt update\r\n<\/pre>\n<p>Finally, install the latest version of Docker CE:<\/p>\n<pre>apt install docker-ce -y\r\n<\/pre>\n<h2 id=\"step-2-install-btcpay\">Step 2 \u2013 Install BTCPay<\/h2>\n<p>Clone the BTCPay Server repository from GitHub to your server machine:<\/p>\n<pre>git clone https:\/\/github.com\/btcpayserver\/btcpayserver-docker.git\r\n<\/pre>\n<p>Change into the directory where you cloned the BTCPay Server repository:<\/p>\n<pre>cd ~\/btcpayserver-docker\/\r\n<\/pre>\n<p>Export the environment variables that are necessary for BTCPay installation.<\/p>\n<pre>export BTCPAY_HOST=\"btcpaygreencloud.example.net\"\r\nexport NBITCOIN_NETWORK=\"mainnet\"\r\nexport BTCPAYGEN_CRYPTO1=\"btc\"\r\nexport BTCPAYGEN_REVERSEPROXY=\"empty\"\r\nexport BTCPAYGEN_EXCLUDE_FRAGMENTS=\"$BTCPAYGEN_EXCLUDE_FRAGMENTS;nginx-https\"\r\nexport BTCPAYGEN_LIGHTNING=\"lnd\"\r\nexport BTCPAY_ENABLE_SSH=true\r\n<\/pre>\n<p>Finally, install the BTCPay server using the following script.<\/p>\n<pre>. .\/btcpay-setup.sh -i\r\n<\/pre>\n<p>Output:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-40603\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png\" alt=\"\" width=\"904\" height=\"635\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png 904w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1-300x211.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1-768x539.png 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>To check the BTCPay server status, run the following command:<\/p>\n<pre>systemctl status btcpayserver.service\r\n<\/pre>\n<p>Output:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40605\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2.png\" alt=\"\" width=\"905\" height=\"364\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2.png 905w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-300x121.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-768x309.png 768w\" sizes=\"(max-width: 905px) 100vw, 905px\" \/><\/p>\n<p>You can also verify all running containers using the following command:<\/p>\n<pre>docker ps\r\n<\/pre>\n<p>Output:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40607\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-2.png\" alt=\"\" width=\"906\" height=\"557\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-2.png 906w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-2-300x184.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-2-768x472.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/p>\n<h2 id=\"step-3-configure-the-btcpay-server\">Step 3 \u2013 Configure the BTCPay Server<\/h2>\n<p>Next, you will need to expose port\u00a0<strong>49392<\/strong>\u00a0for the BTCPay server. To do so, edit the BTCPay server configuration file.<\/p>\n<pre>nano ~\/btcpayserver-docker\/Generated\/docker-compose.generated.yml\r\n<\/pre>\n<p>Add the following lines to the btcpayserver section.<\/p>\n<pre>    ports:\r\n    - \"49392:49392\"\r\n<\/pre>\n<p>Save and close the file, then restart the BTCPay service to apply the changes.<\/p>\n<pre>systemctl restart btcpayserver\r\n<\/pre>\n<h2 id=\"step-4-configure-nginx-for-btcpay\">Step 4 \u2013 Configure Nginx for BTCPay<\/h2>\n<p>To configure Nginx as a reverse proxy for the BTCPay Server, you\u2019ll need to create an Nginx server block (also known as a virtual host) to handle incoming requests and forward them to the BTCPay Server instance running on Docker.<\/p>\n<p>If Nginx is not already installed on your system, you can install it using the following command:<\/p>\n<pre>apt install -y nginx\r\n<\/pre>\n<p>Create a new Nginx configuration file for BTCPay Server:<\/p>\n<pre>nano \/etc\/nginx\/conf.d\/btcpay-server.conf\r\n<\/pre>\n<p>Add the following configuration.<\/p>\n<pre>map $http_x_forwarded_proto $proxy_x_forwarded_proto {\r\n  default $http_x_forwarded_proto;\r\n  ''      $scheme;\r\n}\r\n# If we receive X-Forwarded-Port, pass it through; otherwise, pass along the\r\n# server port the client connected to\r\nmap $http_x_forwarded_port $proxy_x_forwarded_port {\r\n  default $http_x_forwarded_port;\r\n  ''      $server_port;\r\n}\r\n# If we receive Upgrade, set Connection to \"upgrade\"; otherwise, delete any\r\n# Connection header that may have been passed to this server\r\nmap $http_upgrade $proxy_connection {\r\n  default upgrade;\r\n  '' close;\r\n}\r\n# Prevent Nginx Information Disclosure\r\nserver_tokens off;\r\n# Default dhparam\r\n# Set appropriate X-Forwarded-Ssl header\r\nmap $scheme $proxy_x_forwarded_ssl {\r\n  default off;\r\n  https on;\r\n}\r\n\r\ngzip_types text\/plain text\/css application\/javascript application\/json application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript;\r\nlog_format vhost '$host $remote_addr - $remote_user [$time_local] '\r\n                 '\"$request\" $status $body_bytes_sent '\r\n                 '\"$http_referer\" \"$http_user_agent\"';\r\naccess_log off;\r\n# HTTP 1.1 support\r\nproxy_http_version 1.1;\r\nproxy_buffering off;\r\nproxy_set_header Host $http_host;\r\nproxy_set_header Upgrade $http_upgrade;\r\nproxy_set_header Connection $proxy_connection;\r\nproxy_set_header X-Real-IP $remote_addr;\r\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\nproxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;\r\nproxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;\r\nproxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;\r\nproxy_buffer_size          128k;\r\nproxy_buffers              4 256k;\r\nproxy_busy_buffers_size    256k;\r\nclient_header_buffer_size 500k;\r\nlarge_client_header_buffers 4 500k;\r\nhttp2_max_field_size       500k;\r\nhttp2_max_header_size      500k;\r\n# Mitigate httpoxy attack (see README for details)\r\nproxy_set_header Proxy \"\";\r\n\r\nserver {\r\n        server_name <span style=\"color: #ff0000;\">btcpaygreencloud.example.net<\/span>;\r\n        listen 80;\r\n\r\n        access_log \/var\/log\/nginx\/btcpay.access;\r\n\terror_log \/var\/log\/nginx\/btcpay.error;\r\n        client_max_body_size 100M;\r\n\r\n        # Here is the main BTCPay Server application\r\n        location \/ {\r\n                proxy_pass http:\/\/127.0.0.1:49392;\r\n        }\r\n\r\n        # Include the next two stanzas if and only if you want to expose your lightning gRPC &amp; RPC interfaces to the internet\r\n        #location \/lnrpc.Lightning {\r\n        #        grpc_pass grpcs:\/\/127.0.0.1:10009;\r\n        #}\r\n\r\n        #location \/lnd-rest\/btc\/ {\r\n        #        rewrite ^\/lnd-rest\/btc\/(.*) \/$1 break;\r\n        #        proxy_pass https:\/\/127.0.0.1:8080\/;\r\n        #}\r\n\r\n        # Include this stanza if you are planning to set up Ride The Lightning (RTL)\r\n        location \/rtl\/ {\r\n                proxy_pass http:\/\/127.0.0.1:3000\/rtl\/;\r\n        }\r\n}\r\n<\/pre>\n<p>Save and close the file, then edit the Nginx main configuration file.<\/p>\n<pre>nano \/etc\/nginx\/nginx.conf\r\n<\/pre>\n<p>Add the following line after the line http{:<\/p>\n<pre>server_names_hash_bucket_size 64;\r\n<\/pre>\n<p>Save the file, then reload the Nginx service to apply the changes.<\/p>\n<pre>systemctl reload nginx\r\n<\/pre>\n<h2 id=\"step-5-enable-ssl-for-the-btcpay-server\">Step 5 \u2013 Enable SSL for the BTCPay Server<\/h2>\n<p>To enable SSL for BTCPay Server using Let\u2019s Encrypt, you can use Certbot, a tool provided by Let\u2019s Encrypt, to obtain and install SSL certificates for your domain.<\/p>\n<pre>apt install certbot python3-certbot-nginx\r\n<\/pre>\n<p>Run Certbot to obtain an SSL certificate for your domain.<\/p>\n<pre>certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email <span style=\"color: #ff0000;\">tamtran@green.cloud<\/span> -d <span style=\"color: #ff0000;\">btcpaygreencloud.example.net\r\n<\/span><\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-40613\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-1.png\" alt=\"\" width=\"906\" height=\"629\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-1.png 906w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-1-300x208.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-1-768x533.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/p>\n<h2 id=\"step-6-access-the-btcpay-server\">Step 6 \u2013 Access the BTCPay Server<\/h2>\n<p>Now, open your web browser and access the BTCPay web interface using the URL <strong>btcpaygreencloud.example.net.<\/strong>\u00a0You will see the BTCPay account creation page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-40615\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3.png\" alt=\"\" width=\"1064\" height=\"974\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3.png 1064w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3-300x275.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3-1024x937.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3-768x703.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-3-16x16.png 16w\" sizes=\"(max-width: 1064px) 100vw, 1064px\" \/><\/p>\n<p>Define your email\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">address and password, and then click\u00a0<strong>&#8216;Create account&#8217;<\/strong><\/span><strong>.<\/strong>\u00a0You will see the store creation page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-40617\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-2.png\" alt=\"\" width=\"1070\" height=\"752\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-2.png 1070w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-2-300x211.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-2-1024x720.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_2-2-768x540.png 768w\" sizes=\"(max-width: 1070px) 100vw, 1070px\" \/><\/p>\n<p>Define your store name, default currency, and price source, then click on\u00a0<strong>Create Store.<\/strong>\u00a0On the following page, you will see the BTCPay dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-40619\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4.png\" alt=\"\" width=\"1064\" height=\"988\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4.png 1064w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-300x279.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-1024x951.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-768x713.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-16x16.png 16w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-18x18.png 18w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-4-20x20.png 20w\" sizes=\"(max-width: 1064px) 100vw, 1064px\" \/><\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>You can now set up your own self-hosted BTCPay Server instance, empowering you to take full control of your payment processing infrastructure. With BTCPay Server, you can leverage the security and transparency of Bitcoin while enjoying the flexibility and customization options provided by a self-hosted solution. By hosting your own BTCPay Server, you can eliminate reliance on third-party payment processors, protect the privacy of your customers\u2019 transactions, and maintain full control over your financial transactions. You can now host your BTCPay server on\u00a0dedicated hosting from Greencloud!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BTCPay Server is an open-source, self-hosted payment processor for Bitcoin and other cryptocurrencies. It enables merchants and businesses to accept Bitcoin payments directly without relying on third-party payment processors or intermediaries. BTCPay Server offers merchants a secure, privacy-focused, and customizable payment processing solution for accepting Bitcoin and other cryptocurrencies. In this tutorial, we will show [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":17817,"menu_order":436,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-40529","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation\" \/>\n<meta property=\"og:description\" content=\"BTCPay Server is an open-source, self-hosted payment processor for Bitcoin and other cryptocurrencies. It enables merchants and businesses to accept Bitcoin payments directly without relying on third-party payment processors or intermediaries. BTCPay Server offers merchants a secure, privacy-focused, and customizable payment processing solution for accepting Bitcoin and other cryptocurrencies. In this tutorial, we will show [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"GreenCloud Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-17T08:21:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"904\" \/>\n\t<meta property=\"og:image:height\" content=\"635\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/\",\"name\":\"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/Screenshot_1-1.png\",\"datePublished\":\"2025-12-15T07:50:21+00:00\",\"dateModified\":\"2026-07-17T08:21:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/#primaryimage\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/Screenshot_1-1.png\",\"contentUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/Screenshot_1-1.png\",\"width\":904,\"height\":635},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GreenCloud Documents\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/docs\\\/greencloud-documents\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Operating Systems\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/linux-operating-systems\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\",\"name\":\"GreenCloud Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/green.cloud\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation","og_description":"BTCPay Server is an open-source, self-hosted payment processor for Bitcoin and other cryptocurrencies. It enables merchants and businesses to accept Bitcoin payments directly without relying on third-party payment processors or intermediaries. BTCPay Server offers merchants a secure, privacy-focused, and customizable payment processing solution for accepting Bitcoin and other cryptocurrencies. In this tutorial, we will show [&hellip;]","og_url":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/","og_site_name":"GreenCloud Documentation","article_modified_time":"2026-07-17T08:21:15+00:00","og_image":[{"width":904,"height":635,"url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/","url":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/","name":"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker - GreenCloud Documentation","isPartOf":{"@id":"https:\/\/green.cloud\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/#primaryimage"},"image":{"@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png","datePublished":"2025-12-15T07:50:21+00:00","dateModified":"2026-07-17T08:21:15+00:00","breadcrumb":{"@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/#primaryimage","url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png","contentUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2025\/12\/Screenshot_1-1.png","width":904,"height":635},{"@type":"BreadcrumbList","@id":"https:\/\/green.cloud\/docs\/how-to-set-up-btcpay-server-on-ubuntu-22-04-with-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/green.cloud\/docs\/"},{"@type":"ListItem","position":2,"name":"GreenCloud Documents","item":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/"},{"@type":"ListItem","position":3,"name":"Linux Operating Systems","item":"https:\/\/green.cloud\/docs\/linux-operating-systems\/"},{"@type":"ListItem","position":4,"name":"How to Set Up BTCPay Server on Ubuntu 22.04 with Docker"}]},{"@type":"WebSite","@id":"https:\/\/green.cloud\/docs\/#website","url":"https:\/\/green.cloud\/docs\/","name":"GreenCloud Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/green.cloud\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/40529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/comments?post=40529"}],"version-history":[{"count":10,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/40529\/revisions"}],"predecessor-version":[{"id":42361,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/40529\/revisions\/42361"}],"up":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/17817"}],"wp:attachment":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/media?parent=40529"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/doc_tag?post=40529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}