mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Add alternative databases to development docker-compose (#1797)
This commit is contained in:
parent
e4a10aae27
commit
f70fb5a74a
@ -3,3 +3,7 @@ COMPOSE_PROJECT_NAME=BitwardenServer
|
||||
# https://docs.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-ver15
|
||||
MSSQL_PASSWORD=SET_A_PASSWORD_HERE_123
|
||||
MAILCATCHER_PORT=1080
|
||||
|
||||
# Alternative databases
|
||||
POSTGRES_PASSWORD=SET_A_PASSWORD_HERE_123
|
||||
MYSQL_ROOT_PASSWORD=SET_A_PASSWORD_HERE_123
|
||||
|
@ -39,5 +39,38 @@ services:
|
||||
profiles:
|
||||
- mail
|
||||
|
||||
postgres:
|
||||
image: postgres:14
|
||||
restart: always
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_DB: vault_dev
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- postgres_dev_data:/var/lib/postgresql/data
|
||||
- ./.data/postgres/config:/etc/postgresql
|
||||
- ./.data/postgres/log:/var/log/postgresql
|
||||
profiles:
|
||||
- postgres
|
||||
|
||||
mysql:
|
||||
image: mysql:8
|
||||
container_name: bw-mysql
|
||||
restart: always
|
||||
ports:
|
||||
- "3306:3306"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: vault_dev
|
||||
volumes:
|
||||
- mysql_dev_data:/var/lib/mysql
|
||||
profiles:
|
||||
- mysql
|
||||
|
||||
volumes:
|
||||
edgesql_dev_data:
|
||||
postgres_dev_data:
|
||||
mysql_dev_data:
|
||||
|
@ -7,6 +7,12 @@
|
||||
"sqlServer": {
|
||||
"connectionString": "Server=localhost;Database=vault_dev;User Id=SA;Password=SET_A_PASSWORD_HERE_123;"
|
||||
},
|
||||
"postgreSql": {
|
||||
"connectionString": "Host=localhost;Username=postgres;Password=SET_A_PASSWORD_HERE_123;Database=vault_dev;Include Error Detail=true",
|
||||
},
|
||||
"mySql": {
|
||||
"connectionString": "server=localhost;uid=root;pwd=SET_A_PASSWORD_HERE_123;database=vault_dev"
|
||||
},
|
||||
"identityServer": {
|
||||
"certificateThumbprint": "<your Identity certificate thumbprint with no spaces>"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user