Cant connect with remote host #1197

Closed
opened 2025-10-09 17:07:21 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @sohag033 on GitHub.

Hi,

I want to connect the remote database with PGSQL. I have already tried with just docker with below cmd and its working fine

docker run -d --name vaultwarden -e DATABASE_URL=postgresql://vaultwarden:password@db host:5432/vaultwarden -p 80:80 vaultwarden/server:latest

But in K8s I am trying to connect to the remote host with the below configmap. why it’s not connected?

apiVersion: v1
kind: ConfigMap
metadata:
name: vaultwarden-configmap
namespace: sohag
data:
DATABASE_CONNECTION: “postgresql”
DATABASE_URL: “host.rds.com:5432
POSTGRES_USER: “vaultwarden”
POSTGRES_PASSWORD: “Password”
POSTGRES_DB: “vaultwarden”

The same is happening for docker-compose.I cant connect remote db wit env file.

could you please help me to solve the problem?

BR,
Samajpati

Originally created by @sohag033 on GitHub. ### Hi, ### I want to connect the remote database with PGSQL. I have already tried with just docker with below cmd and its working fine docker run -d --name vaultwarden -e DATABASE_URL=postgresql://vaultwarden:password@db host:5432/vaultwarden -p 80:80 vaultwarden/server:latest ### But in K8s I am trying to connect to the remote host with the below configmap. why it’s not connected? apiVersion: v1 kind: ConfigMap metadata: name: vaultwarden-configmap namespace: sohag data: DATABASE_CONNECTION: “postgresql” DATABASE_URL: “[host.rds.com:5432](http://host.rds.com:5432/)” POSTGRES_USER: “vaultwarden” POSTGRES_PASSWORD: “Password” POSTGRES_DB: “vaultwarden” ### The same is happening for docker-compose.I cant connect remote db wit env file. ### could you please help me to solve the problem? BR, Samajpati
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1197