-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
73 lines (72 loc) · 2.55 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
version: '3.0'
services:
course-mysql:
image: mysql:latest
command: --max_allowed_packet=52505856 --bulk_insert_buffer_size=52505856
environment:
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_DATABASE=shacourse
- MYSQL_USER=demo
- MYSQL_PASSWORD=demo
ports:
- 3306:3306
container_name: mysql
cassandra:
build: ./cassandra
ports:
- "9042:9042"
container_name: cassandra
discovery-service:
build: ./eureka-discovery-service
entrypoint: /wait-for-it.sh -t 5000 mysql:3306 -- java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=container -jar app.jar
ports:
- 8761:8761
links:
- course-mysql:mysql
user-service:
build: ./microservice-user-management
#wait until mysql changesets are implemented. Then call app.jar
entrypoint: /wait-for-it.sh discovery-service:8761 -- java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=container -jar app.jar
depends_on:
- discovery-service
links:
- course-mysql:mysql
ports:
- 8000:8000
log-service:
build: ./microservice-log-management
environment:
SPRING_DATA_CASSANDRA_CONTACT_POINTS: cassandra
entrypoint: /wait-for-it.sh cassandra:9042 -- java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=container -jar app.jar
depends_on:
- discovery-service
- cassandra
ports:
- 8002:8002
course-service:
build: ./microservice-course-management
entrypoint: /wait-for-it.sh user-service:8000 -- java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=container -jar app.jar
depends_on:
- discovery-service
- user-service
- log-service
- course-mysql
ports:
- 8001:8001
gateway-service:
build: ./zuul-gateway-service
entrypoint: /wait-for-it.sh course-service:8001 -- java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=container -jar app.jar
depends_on:
- discovery-service
- user-service
- log-service
- course-service
ports:
- 8765:8765
course-client:
build: ./course-enrollment-client
ports:
- 4200:80
networks:
default:
driver: bridge