-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
138 lines (135 loc) · 2.95 KB
/
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
version: '3.8'
services:
account_microservice:
build:
context: ./account_microservice/
env_file:
- env/django_secrets_account.env
- env/django_db.env
- env/django_general.env
ports:
- "8081:8081"
- "50051:50051"
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
kibana:
condition: service_started
hospital_microservice:
build:
context: ./hospital_microservice/
env_file:
- env/django_secrets_hospital.env
- env/django_db.env
- env/django_general.env
ports:
- "8082:8082"
- "50052:50052"
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
kibana:
condition: service_started
timetable_microservice:
build:
context: ./timetable_microservice/
env_file:
- env/django_secrets_timetable.env
- env/django_db.env
- env/django_general.env
ports:
- "8083:8083"
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
kibana:
condition: service_started
document_microservice:
build:
context: ./document_microservice/
env_file:
- env/django_secrets_document.env
- env/django_db.env
- env/django_general.env
ports:
- "8084:8084"
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
es:
condition: service_started
kibana:
condition: service_started
db:
image: postgres:15.1
restart: always
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- env/db.env
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
cache:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD-SHELL", "redis-cli ping" ]
interval: 5s
timeout: 1s
retries: 3
nginx:
image: nginx:latest
build: ./nginx
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
# - ./nginx/ssl:/etc/nginx/ssl <-- protocol safety goes to play roblox
depends_on:
- account_microservice
- document_microservice
- hospital_microservice
- timetable_microservice
ports:
- "1337:80"
# - "443:443" <-- protocol safety goes to play roblox
es:
image: elasticsearch:8.15.2
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
volumes:
- es-data:/usr/share/elasticsearch/data
kibana:
image: kibana:8.15.2
environment:
- ELASTICSEARCH_HOSTS=http://es:9200
ports:
- "5601:5601"
depends_on:
- es
volumes:
db-data:
redis-data:
es-data:
driver: local
networks:
elastic: