feat(Vaultwarden): Move postgres dependency on postgres file

This commit is contained in:
Simon 2022-12-31 15:24:38 +01:00
parent 62334b2f85
commit 4bf479d0e0
2 changed files with 3 additions and 3 deletions

View File

@ -4,5 +4,7 @@ version: "3.8"
services:
vaultwarden:
depends_on:
- postgres
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_CONTAINER_NAME}:5432/${POSTGRES_DB}
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_CONTAINER_NAME}:5432/${POSTGRES_DB}

View File

@ -11,8 +11,6 @@ services:
image: ${VAULTWARDEN_CONTAINER_NAME:-vaultwarden/server:1.27.0-alpine}
container_name: ${VAULTWARDEN_CONTAINER_NAME:-vaultwarden}
restart: always
depends_on:
- postgres
environment:
ADMIN_TOKEN: ${VAULTWARDEN_ADMIN_TOKEN:?err}
DOMAIN: https://${VAULTWARDEN_DOMAIN:?err}