-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.06 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
services:
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "4444:4200"
volumes:
- ./Frontend/src:/app/src
depends_on:
- backend
backend:
build:
context: ./WebAPI
dockerfile: Dockerfile
ports:
- "5000:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__SqlServerConnection=Server=db;Database=invoicikaDb;User=sa;Password=invoicika!123;Trusted_Connection=False;MultipleActiveResultSets=true;
depends_on:
- db
volumes:
- ./WebAPI:/app/webapi
networks:
- invoicika_backend
db:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- SA_PASSWORD=invoicika!123
- ACCEPT_EULA=Y
ports:
- "1433:1433"
volumes:
- sql_data:/var/opt/mssql
networks:
- invoicika_backend
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "1433"]
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
networks:
invoicika_backend:
volumes:
sql_data: