From f35c0377f1dd7b5c1d213ff79e3bef5a84944b1d Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:14:47 +0100 Subject: [PATCH] Update docker-compose.yml switch from mariadb to postgresql --- examples/bitwarden-unified/docker-compose.yml | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/examples/bitwarden-unified/docker-compose.yml b/examples/bitwarden-unified/docker-compose.yml index cacf99ebf..7869e00aa 100644 --- a/examples/bitwarden-unified/docker-compose.yml +++ b/examples/bitwarden-unified/docker-compose.yml @@ -1,28 +1,26 @@ ---- -version: "3.7" +version: "3.8" services: bitwarden: + image: bitwarden/self-host:2023.10.1-beta container_name: bitwarden_unified + restart: always depends_on: - - db + - bitwarden-unified-db env_file: - settings.env - image: bitwarden/self-host:beta - restart: always ports: - "8888:8080" volumes: - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/data:/etc/bitwarden - db: - environment: - MARIADB_USER: "bitwarden" - MARIADB_PASSWORD: "Secure_MariaDB_Password1" - MARIADB_DATABASE: "bitwarden_vault" - MARIADB_RANDOM_ROOT_PASSWORD: "true" - image: mariadb:10 + bitwarden-unified-db: + image: postgres:latest container_name: bitwarden_unified_db restart: always + environment: + POSTGRES_USER: "bitwarden" + POSTGRES_PASSWORD: "Secure_MariaDB_Password1" + POSTGRES_DB: "bitwarden_vault" volumes: - - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/mariadb:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/psql:/var/lib/postgresql/data