-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.02 KB
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
42
43
44
45
46
47
48
49
50
51
services:
database:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: dtaapp-sql
environment:
SA_PASSWORD: ${SA_PASSWORD}
ACCEPT_EULA: "Y"
ports:
- "1433:1433"
networks:
- app-network
volumes:
- sql-data:/var/opt/mssql
restart: unless-stopped
backend:
build:
context: ./Server/DtaApp
dockerfile: WebApi/Dockerfile
container_name: dtaapp-backend
depends_on:
- database
environment:
ASPNETCORE_URLS: "http://+:5000"
ConnectionStrings__DefaultConnection: ${DB_CONNECTION}
ports:
- "7106:5000"
networks:
- app-network
restart: unless-stopped
frontend-dev:
build:
context: ./Client/DtaApp
dockerfile: Dockerfile.dev
container_name: dtaapp-frontend-dev
ports:
- "5173:5173"
volumes:
- ./Client/DtaApp:/app
- /app/node_modules
networks:
- app-network
restart: unless-stopped
networks:
app-network:
driver: bridge
volumes:
sql-data: