-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (82 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
90 lines (82 loc) · 2.05 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
version: '3.8'
services:
# ---------------------------
# Eureka Server
# ---------------------------
eureka-server:
build: ./Eureka-Server
container_name: eureka-server
ports:
- "8761:8761"
# ---------------------------
# MongoDB
# ---------------------------
mongodb:
image: mongo:6.0
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
# ---------------------------
# Account Service
# ---------------------------
account-service:
build: ./Account-Service
container_name: account-service
depends_on:
- eureka-server
- mongodb
ports:
- "8081:8081"
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongodb:27017/accounts_db
- EUREKA_SERVER=http://eureka-server:8761/eureka/
# ---------------------------
# Notification Service
# ---------------------------
notification-service:
build: ./Notification-Service
container_name: notification-service
depends_on:
- eureka-server
ports:
- "8083:8083"
environment:
- EUREKA_SERVER=http://eureka-server:8761/eureka/
# ---------------------------
# Transaction Service
# ---------------------------
transaction-service:
build: ./Transaction-Service
container_name: transaction-service
depends_on:
- eureka-server
- account-service
- notification-service
- mongodb
ports:
- "8082:8082"
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongodb:27017/transactions_db
- EUREKA_SERVER=http://eureka-server:8761/eureka/
# ---------------------------
# API Gateway
# ---------------------------
api-gateway:
build: ./ApiGateway
container_name: api-gateway
depends_on:
- eureka-server
- account-service
- transaction-service
- notification-service
ports:
- "8080:8080"
environment:
- EUREKA_SERVER=http://eureka-server:8761/eureka/
# ---------------------------
# Persistent Volumes
# ---------------------------
volumes:
mongo_data: