This repository was archived by the owner on Jul 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
171 lines (165 loc) · 5.05 KB
/
compose.yaml
File metadata and controls
171 lines (165 loc) · 5.05 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
services:
svclyr-api:
container_name: "svclyr-api"
build:
context: ./src
dockerfile: ServiceLayer.API/Dockerfile
platform: linux/amd64
restart: always
environment:
FUNCTIONS_WORKER_RUNTIME: "dotnet-isolated"
AzureWebJobsStorage: "${AZURITE_CONNECTION_STRING}"
AzureWebJobsSecretStorageType: "files"
DatabaseConnectionString: "${DatabaseConnectionString}"
EVENT_GRID_TOPIC_URL: "${EVENT_GRID_TOPIC_URL}"
EVENT_GRID_TOPIC_KEY: "${EVENT_GRID_TOPIC_KEY}"
ASPNETCORE_URLS: "http://0.0.0.0:8080"
ports:
- "${API_PORT}:8080"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
azurite:
condition: service_healthy
db:
condition: service_healthy
networks:
- backend
svclyr-mesh-ingest:
container_name: "svclyr-mesh-ingest"
build:
context: ./src
dockerfile: ServiceLayer.Mesh/Dockerfile
platform: linux/amd64
restart: always
environment:
FUNCTIONS_WORKER_RUNTIME: "dotnet-isolated"
AzureWebJobsStorage: "${AZURITE_CONNECTION_STRING}"
AzureWebJobsSecretStorageType: "files"
DatabaseConnectionString: "${DatabaseConnectionString}"
FileDiscoveryTimerExpression: "${FileDiscoveryTimerExpression}"
MeshHandshakeTimerExpression: "${MeshHandshakeTimerExpression}"
FileRetryTimerExpression: "${FileRetryTimerExpression}"
FileExtractQueueName: "${FileExtractQueueName}"
FileTransformQueueName: "${FileTransformQueueName}"
StaleHours: "${StaleHours}"
MeshApiBaseUrl: "http://mesh-sandbox/messageexchange"
NbssMailboxId: "${NbssMailboxId}"
MeshPassword: "${MeshPassword}"
MeshSharedKey: "${MeshSharedKey}"
AZURITE_CONNECTION_STRING: "${AZURITE_CONNECTION_STRING}"
MeshBlobStorageUrl: "${AZURITE_CONNECTION_STRING}"
MeshQueueStorageUrl: "${AZURITE_CONNECTION_STRING}"
ASPNETCORE_ENVIRONMENT: "${ASPNETCORE_ENVIRONMENT}"
ASPNETCORE_URLS: "http://0.0.0.0:8080"
MeshBlobContainerName: "${MeshBlobContainerName}"
ports:
- "${MESH_INGEST_PORT}:8080"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
azurite:
condition: service_healthy
db:
condition: service_healthy
mesh-sandbox:
condition: service_started
volumes:
- mesh-config-data:/azure-functions-host/Secrets/
networks:
- backend
azurite:
container_name: "azurite"
image: mcr.microsoft.com/azure-storage/azurite:latest
restart: always
command: "azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --location /data --debug /data/debug.log"
ports:
- "${AZURITE_BLOB_PORT}:10000"
- "${AZURITE_QUEUE_PORT}:10001"
- "${AZURITE_TABLE_PORT}:10002"
healthcheck:
test: ["CMD-SHELL", "/bin/sh -c 'nc -z 127.0.0.1 10000 || exit 1'"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
volumes:
- azurite-data:/data
networks:
- backend
db:
container_name: "db"
image: mcr.microsoft.com/mssql/server:2022-latest
restart: always
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "${DATABASE_PASSWORD}"
ports:
- "1433:1433"
user: "root"
healthcheck:
test:
[
"CMD-SHELL",
"grep -q 'SQL Server is now ready for client connections' /var/opt/mssql/log/errorlog || exit 1",
]
interval: 20s
timeout: 10s
retries: 6
start_period: 60s
networks:
- backend
db-migrations:
container_name: db-migrations
build:
context: .
dockerfile: src/ServiceLayer.Shared/Dockerfile.migrations
args:
DatabaseConnectionString: "${DatabaseConnectionString}"
depends_on:
db:
condition: service_healthy
environment:
DATABASE_NAME: "${DATABASE_NAME}"
DATABASE_USER: "${DATABASE_USER}"
DATABASE_PASSWORD: "${DATABASE_PASSWORD}"
networks:
- backend
mesh-sandbox:
container_name: mesh-sandbox
build: tests/mesh-sandbox/
ports:
- "8700:80"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
environment:
- SHARED_KEY=TestKey
- SSL=no
volumes:
# mount a different mailboxes.jsonl to pre created mailboxes
- ./tests/mesh-sandbox/src/mesh_sandbox/store/data/mailboxes.jsonl:/app/mesh_sandbox/store/data/mailboxes.jsonl:ro
- ./tests/mesh-sandbox/src/mesh_sandbox/test_plugin:/app/mesh_sandbox/plugins:ro
# you can mount a directory if you want access the stored messages
- ./tests/mesh-sandbox/messages:/tmp/mesh_store
networks:
- backend
networks:
backend:
name: backend-network
driver: bridge
volumes:
azurite-data:
name: azurite-data
mesh-config-data:
name: mesh-config-data
driver: local