-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
61 lines (55 loc) · 1.24 KB
/
compose.yaml
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
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
# Banco de Dados SQL Server
sql-server:
image: mcr.microsoft.com/azure-sql-edge
container_name: azure-sql-server
environment:
MSSQL_SA_PASSWORD: "Password123"
ACCEPT_EULA: "1"
ports:
- "1433:1433"
volumes:
- sqlvolume:/var/opt/mssql
networks:
- minha-rede
# Executar os scripts iniciais
sql-server-cmd:
build:
context: ./database
dockerfile: Dockerfile
container_name: azure-sql-server-cmd
command: /bin/bash -c '/opt/mssql-tools/bin/sqlcmd -S azure-sql-server -U sa -P Password123 -i dbinit.sql'
restart: on-failure
networks:
- minha-rede
depends_on:
- sql-server
# API .NET 6.0
web-api:
build:
context: ./backend/CadastroAPI/CadastroAPI
dockerfile: Dockerfile
container_name: cadastro-web-api
ports:
- "5047:80"
volumes:
- apivolume:/var/opt/api
networks:
- minha-rede
# Aplicação Angular 16
angular-app:
build:
context: ./frontend/CadastroWeb
dockerfile: Dockerfile
container_name: cadastro-web-app
ports:
- "4200:80"
networks:
- minha-rede
volumes:
sqlvolume:
apivolume:
networks:
minha-rede:
driver: bridge