mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
Cant connect with remote host #1197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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