-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (112 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
125 lines (112 loc) · 2.4 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
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
version: "3.2"
services:
# service-discovery - Eureka
server-eureka:
image: fworks/algorithmsboot-eureka
ports:
- 8761:8761
restart: always
networks:
- net
hostname: server-eureka
container_name: server-eureka
# service admin
server-admin:
image: fworks/algorithmsboot-admin
ports:
- 9000:9000
restart: always
networks:
- net
hostname: server-admin
container_name: server-admin
# app-algorithms
app-algorithms:
image: fworks/algorithmsboot-app
ports:
- 8080:8080
restart: always
networks:
- net
hostname: app-algorithms
container_name: app-algorithms
# searching-service
searching-service:
image: fworks/algorithmsboot-searching
ports:
- 8081:8080
restart: always
networks:
- net
hostname: searching-service
container_name: searching-service
# sorting-service
sorting-service:
image: fworks/algorithmsboot-sorting
ports:
- 8082:8080
restart: always
networks:
- net
hostname: sorting-service
container_name: sorting-service
# problems-service
problems-service:
image: fworks/algorithmsboot-problems
ports:
- 8083:8080
restart: always
networks:
- net
hostname: problems-service
container_name: problems-service
# mongo
mongodb:
image: 'mongo'
ports:
- "27017:27017"
networks:
- net
volumes:
- 'mongodb_data:/data/db'
hostname: mongodb
container_name: mongodb
# mysql
mysql:
image: 'mysql'
environment:
- MYSQL_ROOT_PASSWORD=fworks
- MYSQL_USER=admin
- MYSQL_PASSWORD=fworks
- MYSQL_DATABASE=searching
ports:
- "3306:3306"
networks:
- net
volumes:
- 'mysql_data:/var/lib/mysql'
hostname: mysql
container_name: mysql
# elk
#elk:
#image: sebp/elk
#ports:
# - "5601:5601"
# - "9200:9200"
# - "5044:5044"
#networks:
# - net
#volumes:
# - 'elk-data:/var/lib/elasticsearch'
#hostname: elk
#container_name: elk
networks:
net:
driver: bridge
volumes:
mongodb_data:
driver: local
mysql_data:
driver: local
elk-data:
driver: local