-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
149 lines (140 loc) · 3.29 KB
/
docker-compose.yaml
File metadata and controls
149 lines (140 loc) · 3.29 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
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
services:
client:
container_name: client
image: client
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- app_network
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
stdin_open: true
tty: true
registry:
container_name: registry
image: services/service-registry
build: ./services/service-registry
ports:
- "8761:8761"
networks:
- app_network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
gateway:
container_name: gateway
image: services/api-gateway
build: ./services/api-gateway
ports:
- "8082:8082"
depends_on:
registry:
condition: service_healthy
env_file:
- .env
networks:
- app_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://registry:8761/eureka/
market-data:
container_name: market-data
image: services/market-data-service
build: ./services/market-data-service
ports:
- "8083:8083"
depends_on:
gateway:
condition: service_started
registry:
condition: service_healthy
networks:
- app_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://registry:8761/eureka/
# transactions:
# container_name: transaction-service
# image: services/transaction-service
# build: ./services/transaction-service
# ports:
# - "8084:8084"
# depends_on:
# gateway:
# condition: service_started
# networks:
# - app_network
user:
container_name: user
image: services/user-service
build: ./services/user-service
ports:
- "8085:8085"
depends_on:
registry:
condition: service_healthy
gateway:
condition: service_started
# - database
networks:
- app_network
env_file:
- .env
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://registry:8761/eureka/
trading:
container_name: trading-service
image: services/trading-service
build: ./services/trading-service
# command: --max-allowed-packet=64M
ports:
- "8086:8086"
depends_on:
gateway:
condition: service_started
registry:
condition: service_healthy
market-data:
condition: service_started
wallet:
condition: service_started
env_file:
- .env
networks:
- app_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://registry:8761/eureka/
wallet:
container_name: wallet-service
image: services/wallet-service
build: ./services/wallet-service
ports:
- "8087:8087"
depends_on:
- gateway
- registry
# - database
env_file:
- .env
networks:
- app_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://registry:8761/eureka/
test-runner:
container_name: test-runner
image: integration_tests
build: ./integration_tests
networks:
- app_network
environment:
- TARGET_BASE_URL=http://gateway:8082
volumes:
- ./integrationTests:/tests:ro
restart: "no"
networks:
app_network: