-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 1.78 KB
/
docker-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
version: '3.9'
services:
eureka-server:
container_name: "eureka-server"
build:
context: .
dockerfile: Dockerfile
args:
- PATH_FOLDER=./eureka-server
ports:
- 9000:9000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000"]
interval: 10s
timeout: 2m
retries: 5
start_period: 1m
api-gateway:
container_name: "api-gateway"
build:
context: .
dockerfile: Dockerfile
args:
- PATH_FOLDER=./api-gateway
ports:
- 8080:8080
depends_on:
eureka-server:
condition: service_started
activemq:
image: rmohr/activemq
container_name: "activemq"
ports:
- 61616:61616 # JMX
- 8161:8161 # Web Console
environment:
- ACTIVEMQ_ADMIN_LOGIN=admin
- ACTIVEMQ_ADMIN_PASSWORD=admin
- ACTIVEMQ_CONFIG_MINMEMORY=512
- ACTIVEMQ_CONFIG_MAXMEMORY=512
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8161"]
interval: 10s
timeout: 2m
retries: 5
start_period: 1m
product-service:
container_name: "product-service"
build:
context: .
dockerfile: Dockerfile
args:
- PATH_FOLDER=./product-service
ports:
- 8045:8045
depends_on:
eureka-server:
condition: service_started
activemq:
condition: service_started
api-gateway:
condition: service_started
cart-service:
container_name: "cart-service"
build:
context: .
dockerfile: Dockerfile
args:
- PATH_FOLDER=./cart-service
ports:
- 8050:8050
depends_on:
eureka-server:
condition: service_started
activemq:
condition: service_started
api-gateway:
condition: service_started