-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yaml
148 lines (137 loc) · 2.91 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
---
version: '3.2'
services:
empms-es:
build:
context: elasticsearch/
volumes:
- type: bind
source: ./elasticsearch/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx512m -Xms512m"
ELASTIC_PASSWORD: elastic
networks:
- ot-microservices
empms-db:
build:
context: mysql/
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: "attendancedb"
networks:
- ot-microservices
empms-attendance:
build:
context: attendance/
ports:
- "8081:8081"
volumes:
- type: bind
source: ./attendance/config.yaml
target: /app/config.yaml
read_only: true
environment:
CONFIG_FILE: "/app/config.yaml"
networks:
- ot-microservices
depends_on:
- empms-db
empms-salary:
build:
context: salary/
ports:
- "8082:8082"
volumes:
- type: bind
source: ./salary/config.yaml
target: /app/config.yaml
read_only: true
environment:
CONFIG_FILE: "/app/config.yaml"
networks:
- ot-microservices
depends_on:
- empms-es
empms-notification:
build:
context: notification/
environment:
FROM: "${FROM}"
SMTP_USERNAME: "${SMTP_USERNAME}"
SMTP_PASSWORD: "${SMTP_PASSWORD}"
SMTP_SERVER: "${SMTP_SERVER}"
SMTP_PORT: "${SMTP_PORT}"
ELASTIC_USERNAME: "elastic"
ELASTIC_PASSWORD: "elastic"
ELASTIC_HOST: "elastic"
ELASTIC_PORT: 9200
networks:
- ot-microservices
depends_on:
- empms-es
empms-employee:
build:
context: employee/
ports:
- "8083:8083"
volumes:
- type: bind
source: ./employee/config.yaml
target: /app/config.yaml
read_only: true
environment:
CONFIG_FILE: "/app/config.yaml"
networks:
- ot-microservices
depends_on:
- empms-es
empms-gateway:
build:
context: gateway/
ports:
- "8080:8080"
networks:
- ot-microservices
depends_on:
- empms-attendance
- empms-salary
- empms-employee
- empms-notification
empms-frontend:
build:
context: frontend/
ports:
- "5000:5000"
networks:
- ot-microservices
depends_on:
- empms-gateway
empms-webserver:
build:
context: webserver/
volumes:
- type: bind
source: ./webserver/nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
ports:
- "80:80"
networks:
- ot-microservices
depends_on:
- empms-frontend
networks:
ot-microservices:
driver: bridge
volumes:
elasticsearch: