-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (58 loc) · 1.71 KB
/
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
55
56
57
58
59
version: '3.8'
services:
graphql-gatway:
image: graphql/gateway
links:
- book-management-api
- author-management-api
ports:
- 40000:80
restart: always
environment:
- GRAPHQL_URL_0=http://book-management-api/graphql
- GRAPHQL_URL_1=http://author-management-api/graphql
- GRAPHQL_UPDATE_GATEWAY=true
- GRAPHQL_UPDATE_GATEWAY_INTERVAL_MS=60000
depends_on:
- book-management-api
- author-management-api
book-management-api:
image: bookmanagement.api
build:
context: .
dockerfile: ./src/BookManagement/BookManagement.Api/Dockerfile
ports:
- 41000:80
- 41001:443
restart: always
depends_on:
- book-management-db
links:
- book-management-db
environment:
- ASPNETCORE_ENVIRONMENT=Demo
book-management-db:
image: "mcr.microsoft.com/mssql/server"
environment:
SA_PASSWORD: "Book-Management1!"
ACCEPT_EULA: "Y"
author-management-api:
image: authormanagement.api
build:
context: .
dockerfile: ./src/AuthorManagement/AuthorManagement.Api/Dockerfile
ports:
- 42000:80
- 42001:443
restart: always
depends_on:
- author-management-db
links:
- author-management-db
environment:
- ASPNETCORE_ENVIRONMENT=Demo
author-management-db:
image: "mcr.microsoft.com/mssql/server"
environment:
SA_PASSWORD: "Author-Management1!"
ACCEPT_EULA: "Y"