mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05: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
|
# https://docs.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-ver15
|
||||||
MSSQL_PASSWORD=SET_A_PASSWORD_HERE_123
|
MSSQL_PASSWORD=SET_A_PASSWORD_HERE_123
|
||||||
MAILCATCHER_PORT=1080
|
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:
|
profiles:
|
||||||
- mail
|
- 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:
|
volumes:
|
||||||
edgesql_dev_data:
|
edgesql_dev_data:
|
||||||
|
postgres_dev_data:
|
||||||
|
mysql_dev_data:
|
||||||
|
@ -7,6 +7,12 @@
|
|||||||
"sqlServer": {
|
"sqlServer": {
|
||||||
"connectionString": "Server=localhost;Database=vault_dev;User Id=SA;Password=SET_A_PASSWORD_HERE_123;"
|
"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": {
|
"identityServer": {
|
||||||
"certificateThumbprint": "<your Identity certificate thumbprint with no spaces>"
|
"certificateThumbprint": "<your Identity certificate thumbprint with no spaces>"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user