Path: redb/redb.Templates/templates/redb-chat/deploy/docker-compose.mssql.yml Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-chat/deploy/docker-compose.mssql.yml ---- # The chat in its own host with SQL Server instead of SQLite. # Before the first run, switch the provider in code (see the comment in RedbChat.Host/Program.cs): # RedbChat.Host.csproj: redb.SQLite.Pro -> redb.MSSql.Pro # Program.cs: .UseSqlite(...) -> .UseMsSql(connectionString) # RedBase creates its tables but not the database: create redb_app once, for example # docker compose -f deploy/docker-compose.mssql.yml up -d db # docker compose -f deploy/docker-compose.mssql.yml exec db /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P "Change_me_123" -Q "CREATE DATABASE redb_app" # Then: docker compose -f deploy/docker-compose.mssql.yml up --build # Then: curl -d "hello" http://localhost:5090/api/chat (the key comes from deploy/.env: LLM_API_KEY) services: db: image: mcr.microsoft.com/mssql/server:2022-latest environment: ACCEPT_EULA: "Y" MSSQL_SA_PASSWORD: "Change_me_123" volumes: - mssqldata:/var/opt/mssql chat: build: .. environment: ConnectionStrings__Redb: "Server=db,1433;Database=redb_app;User Id=sa;Password=Change_me_123;TrustServerCertificate=true" Tsak__Contexts__redbchat__Override__Llm__ApiKey: ${LLM_API_KEY:?LLM_API_KEY required} ports: - "5090:5090" depends_on: - db volumes: mssqldata: