-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yaml
77 lines (71 loc) · 1.92 KB
/
docker-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.7'
services:
sql:
image: mcr.microsoft.com/mssql/server:2019-latest
hostname: sql
restart: always
ports:
- '1633:1433'
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "This!IsOpenSource1"
lighthouse:
image: petabridge/lighthouse:latest
hostname: lighthouse
ports:
- '9110:9110'
- '4053:4053'
environment:
ACTORSYSTEM: "AkkaTrader"
CLUSTER_PORT: 4053
CLUSTER_IP: "lighthouse"
CLUSTER_SEEDS: "akka.tcp://AkkaTrader@lighthouse:4053"
tradeprocessor:
image: akka.cqrs.tradeprocessor
ports:
- '0:9110'
environment:
CLUSTER_SEEDS: "akka.tcp://AkkaTrader@lighthouse:4053"
CLUSTER_PORT: 5110
SQL_CONNECTION_STR: "Server=sql,1433;User Id=sa;Password=This!IsOpenSource1;TrustServerCertificate=true"
SQL_PROVIDER_NAME: "SqlServer.2019"
restart: on-failure
depends_on:
- "sql"
- "lighthouse"
traders:
image: akka.cqrs.traders
ports:
- '0:9110'
environment:
CLUSTER_SEEDS: "akka.tcp://AkkaTrader@lighthouse:4053"
CLUSTER_PORT: 5110
restart: on-failure
depends_on:
- "lighthouse"
lighthouse_pricing:
image: petabridge/lighthouse:latest
hostname: lighthouse_pricing
ports:
- '9111:9110'
- '4054:4054'
environment:
ACTORSYSTEM: "AkkaPricing"
CLUSTER_PORT: 4054
CLUSTER_IP: "lighthouse_pricing"
CLUSTER_SEEDS: "akka.tcp://AkkaPricing@lighthouse_pricing:4054"
pricing-engine:
image: akka.cqrs.pricing
deploy:
replicas: 3
ports:
- '0:9110'
environment:
CLUSTER_SEEDS: "akka.tcp://AkkaPricing@lighthouse_pricing:4054"
CLUSTER_PORT: 6055
SQL_CONNECTION_STR: "Server=sql,1433;User Id=sa;Password=This!IsOpenSource1;TrustServerCertificate=true"
SQL_PROVIDER_NAME: "SqlServer.2019"
restart: on-failure
depends_on:
- "sql"
- "lighthouse_pricing"