-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-app-compose.yml
145 lines (134 loc) · 3.7 KB
/
docker-app-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
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
version: "3.8"
networks:
stock:
driver: bridge
services:
# Applications
customer:
image: "customer-service"
container_name: "customer"
ports:
- 9001:9001
- 8001:8001
environment:
- SERVER_PORT=9001
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8001
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
order:
image: "order-service"
container_name: "order"
ports:
- 9002:9002
- 8002:8002
environment:
- SERVER_PORT=9002
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8002
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
order2:
image: "order-service"
container_name: "order2"
ports:
- 9003:9003
- 8003:8003
environment:
- SERVER_PORT=9003
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8003
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
order3:
image: "order-service"
container_name: "order3"
ports:
- 9004:9004
- 8004:8004
environment:
- SERVER_PORT=9004
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8004
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
inventory:
image: "inventory-service"
container_name: "inventory"
ports:
- 9005:9005
- 8005:8005
environment:
- SERVER_PORT=9005
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8005
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
inventory2:
image: "inventory-service"
container_name: "inventory2"
ports:
- 9006:9006
- 8006:8006
environment:
- SERVER_PORT=9006
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8006
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
inventory3:
image: "inventory-service"
container_name: "inventory3"
ports:
- 9007:9007
- 8007:8007
environment:
- SERVER_PORT=9007
- BPL_JVM_THREAD_COUNT=50
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8007
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock
gateway:
image: "gateway-service"
container_name: "gateway"
ports:
- 9000:9000
- 8000:8000
environment:
- SERVER_PORT=9000
# Buildpacks environment variable to enable debug through a socket on port 8000
- BPL_DEBUG_ENABLED=true
- BPL_DEBUG_PORT=8000
- CUSTOMER_SERVICE_URL=http://customer:9001
- ORDER_SERVICE_URL=http://order:9002
- ORDER2_SERVICE_URL=http://order2:9003
- ORDER3_SERVICE_URL=http://order3:9004
- INVENTORY_SERVICE_URL=http://inventory:9005
- INVENTORY2_SERVICE_URL=http://inventory2:9006
- INVENTORY3_SERVICE_URL=http://inventory3:9007
- SPRING_REDIS_HOST=gateway-redis
- SPRING_KEYCLOAK_SERVER_URL=http://stock-keycloak:8080
- SPRING_KEYCLOAK_SERVER_EXTERNAL_URL=http://localhost:8080
networks:
- stock