-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (84 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
91 lines (84 loc) · 1.84 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
services:
# Eureka Discovery Server
eureka-server:
build:
context: ./eureka-server
ports:
- "8761:8761"
networks:
- spring-cloud
# API Gateway
api-gateway:
build:
context: ./api-gateway
ports:
- "8080:8080"
depends_on:
- eureka-server
- redis
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
networks:
- spring-cloud
# Organization Service
organization-service:
build:
context: ./organization-service
ports:
- "8081:8081"
depends_on:
- eureka-server
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
- SPRING_REDIS_HOST=redis
networks:
- spring-cloud
# Event Service
event-service:
build:
context: ./event-service
ports:
- "8082:8082"
depends_on:
- eureka-server
- rabbitmq
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
- SPRING_RABBITMQ_HOST=rabbitmq
networks:
- spring-cloud
# News Service (GraphQL)
news-service:
build:
context: ./news-service
ports:
- "8083:8083"
depends_on:
- eureka-server
- rabbitmq
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
- SPRING_RABBITMQ_HOST=rabbitmq
networks:
- spring-cloud
# RabbitMQ
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672" # messaging port
- "15672:15672" # management UI
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
networks:
- spring-cloud
#Redis
redis:
image: redis
ports:
- "6379:6379"
networks:
- spring-cloud
networks:
spring-cloud: