-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 947 Bytes
/
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
version: '3.4'
services:
sqlserver.api:
image: ${DOCKER_REGISTRY-}sqlserverapi
build:
context: .
dockerfile: SqlServer.API/Dockerfile
environment:
- ConnectionStrings__DefaultConnection=Server=sqlserver;Database=mydatabase;User Id=sa;Password=Your_password123;
ports:
- "5000:80" # Adjust the port as needed
depends_on:
- sqlserver
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
SA_PASSWORD: "Your_password123" # Set your SQL Server SA password here
ACCEPT_EULA: "Y"
ports:
- "1433:1433" # SQL Server default port
sqllite.api:
image: ${DOCKER_REGISTRY-}sqlliteapi
build:
context: .
dockerfile: SqlLite.API/Dockerfile
environment:
- ConnectionStrings__DefaultConnection=Data Source=/app/data/app.db
ports:
- "8080:80" # Adjust the port as needed
volumes:
- ./data:/app/data