-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.08 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
43
44
45
46
47
48
49
50
51
52
53
54
version: "3.9"
services:
client:
container_name: client
build: ./client
restart: always
ports:
- 3000:3000
environment:
- VITE_API_URL=http://api:80
depends_on:
- api
api:
container_name: api
build:
context: ./server/
dockerfile: Dockerfile
ports:
- 5000:80
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=db,1433;Database=Carshop;User Id=sa;Password=Password123;
depends_on:
db:
condition: service_healthy
db:
container_name: db
image: mcr.microsoft.com/mssql/server:2019-CU13-ubuntu-20.04
ports:
- 1433:1433
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password123
- MSSQL_PID=Developer
healthcheck:
test:
[
"CMD",
"/opt/mssql-tools/bin/sqlcmd",
"-S",
"localhost",
"-U",
"sa",
"-P",
"Password123",
"-Q",
"SELECT 1",
]
interval: 5s
timeout: 3s
retries: 5