-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1.06 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
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${SA_PASSWORD}
volumes:
- sqlserver_data:/var/opt/mssql
healthcheck:
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "${SA_PASSWORD}", "-Q", "SELECT 1", "-No"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
gateway.api:
image: ${DOCKER_REGISTRY-}gatewayapi
build:
context: .
dockerfile: Gateway.Api/Dockerfile
depends_on:
- identityservice.api
- tasksservice.api
identityservice.api:
image: ${DOCKER_REGISTRY-}identityserviceapi
build:
context: .
dockerfile: IdentityService.Api/Dockerfile
depends_on:
sqlserver:
condition: service_healthy
tasksservice.api:
image: ${DOCKER_REGISTRY-}tasksserviceapi
build:
context: .
dockerfile: TasksService.Api/Dockerfile
depends_on:
sqlserver:
condition: service_healthy
volumes:
sqlserver_data: