-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 977 Bytes
/
docker-compose.yml
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
version: '3.4'
networks:
blogbackend:
blogfrontend:
services:
sql:
container_name: blog_sql
image: "mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04"
ports:
- 8080:1433
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Senha@123
- MSSQL_PID=Express
networks:
- blogbackend
volumes:
- sql_data:/var/opt/mssql
api:
container_name: blog_api
image: blog-api
build:
context: src/Services/Blog
dockerfile: ./1-Api/Api/Dockerfile
ports:
- 8081:80
depends_on:
- sql
environment:
- DB_HOST=blog_sql
- DB_NAME=BlogApp
- DB_SA_PASSWORD=Senha@123
networks:
- blogbackend
- blogfrontend
spa:
container_name: blog_spa
image: blog-spa
build:
context: src/Web/WebSPA/Blog
dockerfile: ./Dockerfile
ports:
- 8082:80
depends_on:
- api
networks:
- blogfrontend
volumes:
sql_data: