-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose-split.yaml
More file actions
83 lines (83 loc) · 2.27 KB
/
docker-compose-split.yaml
File metadata and controls
83 lines (83 loc) · 2.27 KB
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
services:
mongo:
image: mongo:6
ports:
- "27017:27017"
volumes:
- mongo:/data/db
billing-worker:
build:
context: ../
target: oms-worker
environment:
- TEMPORAL_ADDRESS=host.docker.internal:7233
- FRAUD_API_URL=http://billing-api:8084
command: ["-k", "supersecretkey", "-s", "billing"]
restart: on-failure
billing-api:
build:
context: ../
target: oms-api
environment:
- TEMPORAL_ADDRESS=host.docker.internal:7233
- BIND_ON_IP=0.0.0.0
- MONGO_URL=mongodb://mongo:27017
- BILLING_API_PORT=8081
- FRAUD_API_PORT=8084
command: ["-k", "supersecretkey", "-s", "billing,fraud"]
ports:
- "8081:8081"
- "8084:8084"
restart: on-failure
main-worker:
build:
context: ../
target: oms-worker
environment:
- TEMPORAL_ADDRESS=host.docker.internal:7233
- BILLING_API_URL=http://billing-api:8081
- ORDER_API_URL=http://main-api:8082
- SHIPMENT_API_URL=http://main-api:8083
command: ["-k", "supersecretkey", "-s", "order,shipment"]
restart: on-failure
main-api:
build:
context: ../
target: oms-api
environment:
- TEMPORAL_ADDRESS=host.docker.internal:7233
- BIND_ON_IP=0.0.0.0
- MONGO_URL=mongodb://mongo:27017
- ORDER_API_PORT=8082
- SHIPMENT_API_PORT=8083
command: ["-k", "supersecretkey", "-s", "order,shipment"]
ports:
- "8082:8082"
- "8083:8083"
restart: on-failure
codec-server:
build:
context: ../
target: oms-codec-server
# Adjust the web server URL to point to your Temporal Web instance.
# command: ["-p", "8089", "-u", "http://localhost:8080"]
# If you are using a Temporal CLI's start-dev you can use this:
command: ["-p", "8089", "-u", "http://localhost:8233"]
ports:
- "8089:8089"
restart: on-failure
web:
image: ghcr.io/temporalio/reference-app-orders-web:latest
depends_on:
- main-api
environment:
- ORIGIN=http://localhost:3000
- BILLING_API_URL=http://billing-api:8081
- FRAUD_API_URL=http://billing-api:8084
- ORDER_API_URL=http://main-api:8082
- SHIPMENT_API_URL=http://main-api:8083
ports:
- "3000:3000"
restart: on-failure
volumes:
mongo: