-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (29 loc) · 808 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (29 loc) · 808 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
services:
stackoverflowtags:
build:
context: .
dockerfile: StackOverflowTags/Dockerfile
ports:
- "8080:8080"
environment:
- ASPNETCORE_URLS=http://+:8080
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=db;Database=StackOverflowTags;User=sa;Password=Password123!;TrustServerCertificate=True;
depends_on:
- db
db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: sql_server
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Password123!"
ACCEPT_EULA: "Y"
db_test:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: sql_server_test
ports:
- "1434:1433"
environment:
SA_PASSWORD: "Password123!"
ACCEPT_EULA: "Y"