Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
switch from mariadb to postgresql
  • Loading branch information
l4rm4nd authored Nov 6, 2023
1 parent 83349fa commit f35c037
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions examples/bitwarden-unified/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f35c037

Please sign in to comment.