Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions containers/.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ MSSQL_SA_PASSWORD="P@ssword123!"
# OpenTelemetry API Key
SEQ_FIRSTRUN_NOAUTHENTICATION="TRUE"
SEQ_STORAGE_SECRETKEY="XsL3FMvDWrPVqiIkzSkKEojF/Z/OpDJV4FkRNje0G4s="

# Ollama service
OLLAMA_API_KEY="1234567890"
OLLAMA_MODEL="llama3"
32 changes: 32 additions & 0 deletions containers/docker-compose-common.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
services:
# Development Resources

mssql:
build: ./mssql
environment:
SA_PASSWORD: "${MSSQL_SA_PASSWORD}"
ACCEPT_EULA: "${ACCEPT_EULA}"
MSSQL_AGENT_ENABLED: "true"
ports:
- "10433:1433"
container_name: SqlServerDev
#restart: unless-stopped
hostname: mssql

cosmosdb:
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator
environment:
AZURE_COSMOS_EMULATOR_PARTITION_COUNT: "3"
AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE: "true"
ports:
- "8081:8081"
- "10251:10251"
- "10252:10252"
- "10253:10253"
container_name: CosmoDbDev
#restart: unless-stopped
hostname: cosmosdb

# Redis Cache
redis:
image: redis:latest
Expand Down Expand Up @@ -29,6 +55,8 @@ services:
SEQ_STORAGE_SECRETKEY: "${SEQ_STORAGE_SECRETKEY}"
ports:
- "10150:80" # OpenTelemetry, Update port if needed
volumes:
- seq-data:/data
#restart: unless-stopped
container_name: OtelCollectorDev

Expand Down Expand Up @@ -99,3 +127,7 @@ services:

networks:
sb-emulator:

volumes:
seq-data:
driver: local
15 changes: 1 addition & 14 deletions containers/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
services:

# SQL Server instance
mssql:
build: ./mssql
environment:
SA_PASSWORD: "${MSSQL_SA_PASSWORD}"
ACCEPT_EULA: "${ACCEPT_EULA}"
MSSQL_AGENT_ENABLED: "true"
ports:
- "4110:1433" # SQL Server, Update port if needed
container_name: ExampleSql
hostname: mssql

# if needed add project specific resources and enable the line in docker_setup.ps1 and docker_down.ps1
2 changes: 1 addition & 1 deletion docker_down.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (Get-Command docker -ErrorAction SilentlyContinue) {

## Teardown the vs multi-container
docker-compose -f "./containers/docker-compose-common.yml" -p common_shared down
docker-compose -f "./containers/docker-compose.yml" -p dotnet_example down
#docker-compose -f "./containers/docker-compose.yml" -p project down
}

Write-Host "Docker Teardown Complete..."
2 changes: 1 addition & 1 deletion docker_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (Get-Command docker -ErrorAction SilentlyContinue) {

## Start the vs multi-container
docker-compose -f "./containers/docker-compose-common.yml" -p common_shared up -d
docker-compose -f "./containers/docker-compose.yml" -p dotnet_example up -d
#docker-compose -f "./containers/docker-compose.yml" -p project up -d
}

Write-Host "Docker images and container setup completed."
Expand Down