mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Devcontainer Improvements (#4466)
* Optionally Run `docker-compose` * Use Traversal Projects Over Solution Files * Cleanup VSCode Tasks * Bind DataProtection Keys to Host - Makes it so the container can be rebuilt without corrupting data * Update .vscode/tasks.json Co-authored-by: Matt Bishop <mbishop@bitwarden.com> --------- Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
This commit is contained in:
@ -9,7 +9,11 @@ $service = "mysql"
|
||||
|
||||
Write-Output "--- Attempting to start $service service ---"
|
||||
|
||||
docker-compose --profile $service up -d --no-recreate
|
||||
# Attempt to start mysql but if docker-compose doesn't
|
||||
# exist just trust that the user has it running some other way
|
||||
if (command -v docker-compose) {
|
||||
docker-compose --profile $service up -d --no-recreate
|
||||
}
|
||||
|
||||
dotnet tool restore
|
||||
|
||||
|
Reference in New Issue
Block a user