mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
66c5ccf82d
* add devcontainers for `server` * run db migrations automatically in dev environment * remove curl * remove trailing comma; causes parsing with `jq` * use existing .env * add initializeCommand * use better search string * restructure common files * chmod +x scripts * remove problematic env config scripts * add mention of var that is needed for devcontainer * remove ref to deleted script * Update .devcontainer/community_dev/devcontainer.json Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com> * Update .devcontainer/internal_dev/devcontainer.json Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com> * use dev image for `6.0.416` SDK * revert to manual DB migrations * reuse SQL connection string var --------- Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
33 lines
842 B
YAML
33 lines
842 B
YAML
version: '3'
|
|
|
|
services:
|
|
bitwarden_server:
|
|
image: mcr.microsoft.com/devcontainers/dotnet:dev-6.0
|
|
volumes:
|
|
- ../../:/workspace:cached
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: sleep infinity
|
|
|
|
bitwarden_mssql:
|
|
image: mcr.microsoft.com/azure-sql-edge:latest
|
|
restart: unless-stopped
|
|
env_file:
|
|
../../dev/.env
|
|
environment:
|
|
ACCEPT_EULA: "Y"
|
|
MSSQL_PID: Developer
|
|
volumes:
|
|
- edgesql_dev_data:/var/opt/mssql
|
|
- ../../util/Migrator:/mnt/migrator/
|
|
- ../../dev/helpers/mssql:/mnt/helpers
|
|
- ../../dev/.data/mssql:/mnt/data
|
|
network_mode: service:bitwarden_server
|
|
|
|
bitwarden_mail:
|
|
image: sj26/mailcatcher:latest
|
|
restart: unless-stopped
|
|
network_mode: service:bitwarden_server
|
|
|
|
volumes:
|
|
edgesql_dev_data:
|