-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
170 lines (156 loc) · 4.06 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
services:
# Infrastructure
postgres:
image: postgres:16.6
environment:
- POSTGRES_PASSWORD=temporal
- POSTGRES_USER=temporal
networks:
- devnet
expose:
- 5432
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
elasticsearch:
image: elasticsearch:8.17.0
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms256m -Xmx256m
- xpack.security.enabled=false
networks:
- devnet
expose:
- 9200
ports:
- 9200:9200
volumes:
- elasticsearch-data:/var/lib/elasticsearch/data
# Temporal
temporal:
image: temporalio/auto-setup:1.26
depends_on:
- postgres
- elasticsearch
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgres
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- ENABLE_ES=true
- ES_SEEDS=elasticsearch
- ES_VERSION=v7
networks:
- devnet
ports:
- 7233:7233
volumes:
- ./temporal-dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-admin-tools:
image: temporalio/admin-tools:1.26
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
networks:
- devnet
stdin_open: true
tty: true
temporal-ui:
image: temporalio/ui:2.34.0
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
- TEMPORAL_NOTIFY_ON_NEW_VERSION=false
networks:
- devnet
ports:
- 8080:8080
# Main Application
app-orchestrator:
depends_on:
- temporal
build:
context: ./src/ProcessOrchestrator.Host
dockerfile: process-orchestrator.Dockerfile
environment:
- ShipmentProcess__ApiBaseUrl=http://*:43210
- ShipmentProcess__Temporal__ServerAddress=temporal:7233
- ShipmentProcess__WaitForInfrastructureOnStartup=true
ports:
- 43210:43210
networks:
- devnet
app-manifestation:
depends_on:
- temporal
build:
context: ./src/Manifestation.Host
dockerfile: manifestation.Dockerfile
environment:
- ShipmentProcess__ApiBaseUrl=http://*:43211
- ShipmentProcess__Temporal__ServerAddress=temporal:7233
- ShipmentProcess__WaitForInfrastructureOnStartup=true
ports:
- 43211:43211
networks:
- devnet
app-documents:
depends_on:
- temporal
build:
context: ./src/DocumentsGeneration.Host
dockerfile: documents-generation.Dockerfile
environment:
- ShipmentProcess__ApiBaseUrl=http://*:43212
- ShipmentProcess__Temporal__ServerAddress=temporal:7233
- ShipmentProcess__WaitForInfrastructureOnStartup=true
ports:
- 43212:43212
networks:
- devnet
app-collection-booking:
depends_on:
- temporal
build:
context: ./src/CollectionBooking.Host
dockerfile: collection-booking.Dockerfile
environment:
- ShipmentProcess__ApiBaseUrl=http://*:43213
- ShipmentProcess__Temporal__ServerAddress=temporal:7233
- ShipmentProcess__WaitForInfrastructureOnStartup=true
ports:
- 43213:43213
networks:
- devnet
app-carrier-integration:
depends_on:
- temporal
build:
context: ./src/CarrierIntegration.Host
dockerfile: carrier-integration.Dockerfile
environment:
- ShipmentProcess__ApiBaseUrl=http://*:43220
- ShipmentProcess__Temporal__ServerAddress=temporal:7233
- ShipmentProcess__WaitForInfrastructureOnStartup=true
ports:
- 43220:43220
networks:
- devnet
volumes:
postgres-data:
driver: local
elasticsearch-data:
driver: local
networks:
devnet:
driver: bridge