<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Want to run FusionAuth and the backend app in Docker]]></title><description><![CDATA[<p dir="auto">Hiya,</p>
<p dir="auto">I want to run FusionAuth and the backend app in Docker, but run into an issue with this quickstart: <a href="https://github.com/FusionAuth/fusionauth-quickstart-javascript-express-web/" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-quickstart-javascript-express-web/</a></p>
<p dir="auto">When I modify the complete-application/.env file to have the value for <code>fusionAuthURL=http://localhost:9011</code> the token exchange fails (because the dockerized express app doesn't know how to get to FusionAuth).</p>
<p dir="auto">When I set <code>fusionAuthURL=http://fusionauth:9011</code> where <code>fusionauth</code> is the internal docker network domain name of the FusionAuth server, the initial redirect fails, because my browser doesn't know about that domain (not being in Docker).</p>
<p dir="auto">How can I fix this?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3020/want-to-run-fusionauth-and-the-backend-app-in-docker</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 19:34:11 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3020.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Aug 2025 21:57:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Want to run FusionAuth and the backend app in Docker on Fri, 08 Aug 2025 21:58:42 GMT]]></title><description><![CDATA[<p dir="auto">You can create two values for the FusionAuth url:</p>
<pre><code>internalFusionAuthURL="http://fusionauth:9011"
externalFusionAuthURL="http://localhost:9011"
</code></pre>
<p dir="auto">So basically whenever you are sending the redirect to the browser (pretty much just the authorize and logout URLs) you use externalFusionAuthURL  which references localhost.</p>
<p dir="auto">When you are communicating with FusionAuth from the application backend (the express app) you use the internalFusionAuthURL which references the docker domain name.</p>
<p dir="auto">I tested that out and it seems to work fine.</p>
<p dir="auto">Give that a try.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8275</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8275</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 08 Aug 2025 21:58:42 GMT</pubDate></item></channel></rss>