-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 822 Bytes
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
version: '3.8'
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Hamza@1234
ports:
- "1434:1433"
volumes:
- sqlserver_data:/var/opt/mssql
networks:
- library-network
api:
build:
context: .
dockerfile: src/LibraryManagementApp.API/Dockerfile
ports:
- "5000:8080"
- "5001:443"
depends_on:
- sqlserver
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=sqlserver,1433;Database=LibraryManagementDb;User Id=sa;Password=Hamza@1234;TrustServerCertificate=true;
networks:
- library-network
restart: unless-stopped
volumes:
sqlserver_data:
networks:
library-network:
driver: bridge