|
Hello, I am using the following code to add a PostgreSQL resource: var postgres = builder.AddPostgres(postgresName, user, password, port)
.WithDataVolume($"{postgresName}-volume")
.WithPgAdmin(pgAdmin =>
{
pgAdmin.WithHostPort(5050);
pgAdmin.WithLifetime(ContainerLifetime.Persistent);
});It works well when dealing with the databases that are running locally. But when I tried to add a remote db mapped to a local port I realized that it is a bit tricky for instance to setup the hostname (I failed with the Did I miss anything? My current aspire version is 13.1.2. |
Replies: 1 comment 4 replies
What does this mean exactly?
Aspire's current version is 13.3.5. |

Today WithPgAdmin reads the configuration from postgres and emits the right magic that pgadmin needs to talk to postgres. It seems like you are asking for a standalone pgadmin resource that can be used to point to your remote postgres. We don't currently have that resource shape.