Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to connect remote database #12

Open
sohag033 opened this issue Feb 12, 2022 · 1 comment
Open

need to connect remote database #12

sohag033 opened this issue Feb 12, 2022 · 1 comment

Comments

@sohag033
Copy link

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"

could you please help me to solve the problem?
BR,
Samajpati

@icicimov
Copy link
Owner

So why don't you put the same:

DATABASE_URL: "postgresql://vaultwarden:password@db host:5432/vaultwarden"

in the configmap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants