-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (89 loc) · 2.17 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.4'
services:
orders-api:
image: ${DOCKER_REGISTRY-}biscottionlineordersapi
build:
context: .
dockerfile: Biscotti.Online.Orders.API/Dockerfile
ports:
- "5001:80"
depends_on:
- dapr-placement
networks:
- default
- backend
orders-api-dapr:
image: "daprio/daprd:1.10.3"
command: ["./daprd",
"-app-id","orders-api",
"-app-port","80",
"-placement-host-address","dapr-placement:50000",
"-resources-path", "./components",
"-config","./configuration/biscotti-online-config.yaml",
"-log-level","debug"]
depends_on:
- sql
- orders-api
network_mode: "service:orders-api"
volumes:
- "./components/:/components"
- "./configuration/:/configuration"
reservations-api:
image: ${DOCKER_REGISTRY-}biscottionlinereservationsapi
build:
context: .
dockerfile: Biscotti.Online.Reservations.API/Dockerfile
ports:
- "5002:80"
depends_on:
- dapr-placement
networks:
- default
- backend
reservations-api-dapr:
image: "daprio/daprd:1.10.3"
command: ["./daprd",
"-app-id","reservations-api",
"-app-port","80",
"-placement-host-address","dapr-placement:50000",
"-resources-path", "./components",
"-config","./configuration/biscotti-online-config.yaml",
"-log-level","debug"]
depends_on:
- sql
- reservations-api
network_mode: "service:reservations-api"
volumes:
- "./components/:/components"
- "./configuration/:/configuration"
dapr-placement:
image: "daprio/dapr:1.10.3"
command: ["./placement", "-port", "50000","-log-level","debug"]
ports:
- "50000:50000"
networks:
- default
- backend
redis:
image: redis:latest
command: >
--requirepass y4dPrhPM55GhWSQw
ports:
- "6379:6379"
volumes:
- redis-data:/data
sql:
image: mcr.microsoft.com/azure-sql-edge
ports:
- "1433:1433"
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "y4dPrhPM55GhWSQw"
volumes:
- sql-data:/var/opt/mssql
volumes:
redis-data:
sql-data:
networks:
default:
backend: