mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-31 05:33:46 +00:00
Update docker-compose.yml
switch from mariadb to postgresql
This commit is contained in:
parent
83349fa33d
commit
f35c0377f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user