-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
184 lines (168 loc) · 4.26 KB
/
docker-compose.yaml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: '3.8'
services:
student-service:
image: meetpatel0963/pms-student-service:latest
mem_limit: 700m
ports:
- "8100:8100"
- "8101:8101"
networks:
- placement-management-system-network
depends_on:
- config-server
- naming-server
- zipkin-server
- rabbitmq
restart: on-failure
job-service:
image: meetpatel0963/pms-job-service:latest
mem_limit: 700m
ports:
- "8080:8080"
- "8081:8081"
networks:
- placement-management-system-network
depends_on:
- cassandra-node
- config-server
- naming-server
- zipkin-server
- rabbitmq
restart: on-failure
placement-service:
image: apreciar/pms-placement-service:latest
mem_limit: 700m
ports:
- "8180:8180"
- "8181:8181"
env_file: ./.env
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
depends_on:
- mysqldb
networks:
- placement-management-system-network
restart: on-failure
article-service:
image: poojan4004/placement-management-service:article-service-v1.2.0
mem_limit: 700m
ports:
- "8000:8000"
- "8001:8001"
networks:
- placement-management-system-network
depends_on:
- zipkin-server
- rabbitmq
- config-server
- naming-server
- postgres-db
restart: on-failure
api-gateway:
image: meetpatel0963/pms-api-gateway:latest
mem_limit: 700m
ports:
- "8765:8765"
networks:
- placement-management-system-network
depends_on:
- config-server
- naming-server
- zipkin-server
- rabbitmq
restart: on-failure
config-server:
image: meetpatel0963/pms-config-server:latest
mem_limit: 700m
ports:
- "8888:8888"
networks:
- placement-management-system-network
depends_on:
- rabbitmq
restart: on-failure
naming-server:
image: meetpatel0963/pms-naming-server:latest
mem_limit: 700m
ports:
- "8761:8761"
networks:
- placement-management-system-network
restart: on-failure
zipkin-server:
image: openzipkin/zipkin:2.23
mem_limit: 300m
ports:
- "9411:9411"
networks:
- placement-management-system-network
restart: on-failure
rabbitmq:
image: rabbitmq:3.9.7-management
mem_limit: 300m
ports:
- "5672:5672"
- "15672:15672"
networks:
- placement-management-system-network
restart: on-failure
# databases
cassandra-node:
image: cassandra:3.11.11
container_name: cassandra-node
hostname: cassandra-node
mem_limit: 2g
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
ports:
- "9042:9042" # To expose native binary CQL port for the app
volumes:
- ./cassandra/data:/var/lib/cassandra # To persist data for cassandra-node
- ./cassandra/config:/etc/cassandra # Use own config files for full control
- ./cassandra/cassandra-init-db.cql:/cassandra-init-db.cql
- ./cassandra/cassandra-init.sh:/cassandra-init.sh
entrypoint: sh -c /cassandra-init.sh
environment: &environment
CASSANDRA_KEYSPACE: pms_job_service
CASSANDRA_SEEDS: "cassandra-node"
CASSANDRA_CLUSTER_NAME: SolarSystem
CASSANDRA_DC: Mars
CASSANDRA_RACK: West
CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
CASSANDRA_NUM_TOKENS: 128
networks:
- placement-management-system-network
restart: on-failure
postgres-db:
image: poojan4004/postgres-pms:v1.0.0
mem_limit: 500m
environment:
PGDATA: postgres
ports:
- "5431:5432"
volumes:
- article-service-data:/postgres
networks:
- placement-management-system-network
restart: on-failure
mysqldb:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: placement
ports:
- "3309:3306"
volumes:
- ./mysql/backup/files/:/data_backup/data
- ./mysql/data:/var/lib/mysql
networks:
- placement-management-system-network
restart: on-failure
volumes:
article-service-data:
networks:
placement-management-system-network: