<p></p>
<p><b>@pablobm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6424#discussion_r2481663964">.devcontainer/devcontainer.json</a>:</p>
<pre style='color:#555'>> +
+ // Features to add to the dev container. More info: https://containers.dev/features.
+ "features": {
+ "ghcr.io/devcontainers/features/github-cli:1": {},
+ "ghcr.io/devcontainers/features/node:1": {},
+ "ghcr.io/rails/devcontainer/features/activestorage": {},
+ "ghcr.io/rails/devcontainer/features/postgres-client": {}
+ },
+
+ "containerEnv": {
+ "CAPYBARA_SERVER_PORT": "45678",
+ "DB_HOST": "postgres"
+ },
+
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
+ "forwardPorts": [3000, 5432, 6379],
</pre>
<p dir="auto">Good catch. The Redis port is a leftover that I failed to remove. The initial command <code class="notranslate">bin/rails devcontainer</code> generates a configuration that includes Redis, which I removed except for that detail.</p>
<p dir="auto">As for the use of the list of ports... actually I have no idea. I'm no expert either, and I was playing with it now and I can't make any sense of it. I can't access Postgres from outside the container, and if I remove 3000 I can still access the web server with my browser. I'm now wondering if we should remove this line altogether as I don't know what it does at all 🤔 The documentation is not very clear.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6424#discussion_r2481663964">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKOBZJABHNZTYMMW5T32NYX3AVCNFSM6AAAAACIAUD6DKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTIMBUGYZDQNBYGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOBWXAMI6PEIP6ZXWL32NYX3A5CNFSM6AAAAACIAUD6DKWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTWK52BAE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6424/review/3404628482</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6424#discussion_r2481663964",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6424#discussion_r2481663964",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>