-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.21 KB
/
docker-compose.yml
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
version: "3.6"
services:
db:
image: "mcr.microsoft.com/mssql/server:2022-latest"
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Password1"
ACCEPT_EULA: "Y"
# Developer / Express / Standard / Enterprise / EnterpriseCore
MSSQL_PID: Developer
MSSQL_TCP_PORT: 1433
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P "$$SA_PASSWORD" -Q "SELECT 1" -b -o /dev/null
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
integration-tests:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
volumes:
- .:/app
environment:
- "ConnectionStrings__AppDbContext=Data Source=db,1433;Initial Catalog=REPLACE_ME_PROGRAMATICALLY;User Id=sa;Password=Password1;TrustServerCertificate=True"
command: [ "./scripts/start-tests.sh" ]
lint-formatter:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
# Uncomment the following line to run the checker
# command: [ "./scripts/start-check-formatting.sh" ]
# Uncomment the following line to run the formatter
command: [ "./scripts/start-formatter.sh" ]