-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (38 loc) · 834 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (38 loc) · 834 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
38
39
40
41
version: '3.5'
services:
db:
image: mcr.microsoft.com/azure-sql-edge:latest
cap_add: [ 'SYS_PTRACE' ]
container_name: db
restart: on-failure
environment:
- "ACCEPT_EULA=1"
- "MSSQL_SA_PASSWORD=pass123!"
- "MSSQL_PID=Developer"
- "MSSQL_USER=SA"
ports:
- "1433:1433"
api:
build:
context: .
dockerfile: Api/Dockerfile
container_name: api
restart: unless-stopped
environment:
- "ASPNETCORE_ENVIRONMENT=DockerDevelopment"
ports:
- "80:80"
depends_on:
- db
background-worker:
build:
context: .
dockerfile: BackgroundWorker/Dockerfile
container_name: background-worker
restart: unless-stopped
environment:
- "ASPNETCORE_ENVIRONMENT=DockerDevelopment"
ports:
- "81:80"
depends_on:
- db