-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (104 loc) · 4.26 KB
/
docker-compose.yml
File metadata and controls
107 lines (104 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
api:
image: ${DOCKER_REGISTRY-}api
build:
context: .
dockerfile: src/Api/Dockerfile
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_HTTP_PORTS=80
- ASPNETCORE_URLS=http://*:80
- DatabaseProvider=${DATABASE_PROVIDER:-SqlServer}
- SqlServer__ConnectionString=Server=sqlserver;Database=${SQLSERVER_DB_NAME:-AzureOpsCrew};User Id=sa;Password=${SQLSERVER_SA_PASSWORD:-YourStrong@Password};TrustServerCertificate=True;
- LongTermMemory__Type=${LONG_TERM_MEMORY_TYPE:-None}
- LongTermMemory__Neo4j__Uri=${NEO4J_URI:-bolt://neo4j:7687}
- LongTermMemory__Neo4j__Username=${NEO4J_USERNAME:-neo4j}
- LongTermMemory__Neo4j__Password=${NEO4J_PASSWORD:-azureopscrew}
- Jwt__Issuer=${JWT_ISSUER:-AzureOpsCrew}
- Jwt__Audience=${JWT_AUDIENCE:-AzureOpsCrewFrontend}
- Jwt__SigningKey=${JWT_SIGNING_KEY:-ChangeThisDevelopmentOnlySigningKeyWithAtLeast32Chars!}
- Jwt__AccessTokenMinutes=${JWT_ACCESS_TOKEN_MINUTES:-480}
- EmailVerification__IsEnabled=${EMAIL_VERIFICATION_ENABLED:-false}
- EmailVerification__CodeLength=${EMAIL_VERIFICATION_CODE_LENGTH:-6}
- EmailVerification__CodeTtlMinutes=${EMAIL_VERIFICATION_CODE_TTL_MINUTES:-10}
- EmailVerification__ResendCooldownSeconds=${EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS:-30}
- EmailVerification__MaxVerificationAttempts=${EMAIL_VERIFICATION_MAX_ATTEMPTS:-5}
- Brevo__ApiBaseUrl=${BREVO_API_BASE_URL:-https://api.brevo.com}
- Brevo__ApiKey=${BREVO_API_KEY:-}
- Brevo__SenderEmail=${BREVO_SENDER_EMAIL:-azureopscrew@aoc-app.com}
- Brevo__SenderName=${BREVO_SENDER_NAME:-Azure Ops Crew}
- Seeding__IsEnabled=${SEEDING_ENABLED:-false}
- Seeding__ProviderSeed__ProviderType=${SEEDING_PROVIDER_TYPE:-AzureFoundry}
- Seeding__ProviderSeed__ApiEndpoint=${SEEDING_PROVIDER_API_ENDPOINT:-https://your-azure-openai-endpoint.openai.azure.com/}
- Seeding__ProviderSeed__Key=${SEEDING_PROVIDER_API_KEY:-some-azure-openai-api-key}
- Seeding__ProviderSeed__DefaultModel=${SEEDING_PROVIDER_DEFAULT_MODEL:-gpt-5-2-chat}
- Seeding__UserSeed__Email=${SEEDING_USER_EMAIL:-AzureOpsCrew@mail.xyz}
- Seeding__UserSeed__Username=${SEEDING_USER_USERNAME:-BossUser}
- Seeding__UserSeed__Password=${SEEDING_USER_PASSWORD:-Pass1234}
ports:
- "${API_PORT:-42000}:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: on-failure
depends_on:
sqlserver:
condition: service_healthy
# Blazor WASM frontend (static files served by nginx).
frontend:
image: ${DOCKER_REGISTRY-}frontend
build:
context: .
dockerfile: src/Front/Dockerfile
args:
API_BASE_URL: ${API_BASE_URL:-http://localhost:42000}
env_file:
- .env
ports:
- "${FRONTEND_PORT:-42080}:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: on-failure
depends_on:
api:
condition: service_healthy
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
platform: ${DOCKER_SQLSERVER_PLATFORM:-linux/amd64}
container_name: sqlserver
env_file:
- .env
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-YourStrong@Password}
volumes:
- sqlserver_data:/var/opt/mssql
ports:
- "${SQLSERVER_PORT:-42433}:1433"
command:
- /bin/bash
- -c
- |
/opt/mssql/bin/sqlservr &
sleep 30
/opt/mssql-tools18/bin/sqlcmd -U sa -P "${SQLSERVER_SA_PASSWORD:-YourStrong@Password}" -C -Q "IF DB_ID('${SQLSERVER_DB_NAME:-AzureOpsCrew}') IS NULL CREATE DATABASE [${SQLSERVER_DB_NAME:-AzureOpsCrew}];"
wait
healthcheck:
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-U", "sa", "-P", "${SQLSERVER_SA_PASSWORD:-YourStrong@Password}", "-d", "${SQLSERVER_DB_NAME:-AzureOpsCrew}", "-C", "-Q", "SELECT 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 60s
restart: on-failure
volumes:
sqlserver_data:
driver: local