-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 937 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 937 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
version: "3.7"
services:
api:
container_name: api
build:
context: ./Server/BackEndTryitter/BackEndTryitter
dockerfile: Dockerfile
ports:
- "5000:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_CONNECTION_STRING=Server=db;Database=Tryitter;User=SA;Password=Password123;Trusted_Connection=False;TrustServerCertificate=True;
- ASPNETCORE_JWT_SECRET=Supersafesecret123!
depends_on:
db:
condition: service_healthy
db:
container_name: sql_server_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