-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
160 lines (151 loc) · 3.08 KB
/
docker-compose.yml
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
version: '3.5'
services:
frontend:
build:
context: ./vuejs_frontend
dockerfile: Dockerfile
restart: always
container_name: frontend_app
ports:
- "8080:8080"
volumes:
- frontentdata:/usr/src/app/vuejs_frontend
- /usr/src/app/vuejs_frontend/node_modules
networks:
- monstache-network
backend:
build:
context: ./DjangoBackend
dockerfile: Dockerfile
restart: always
container_name: django_server
volumes:
- backenddata:/pfe/backend
- avito-logs-volume:/pfe/backend/logs
ports:
- "8000:8000"
links:
- mongo1
depends_on:
- "mongo1"
networks:
- monstache-network
scrapy-service:
build:
context: ./avito
dockerfile: Dockerfile
restart: always
container_name: scrapy_server
volumes:
- ./avito:/pfe/avito-scrapy-server
- avito-logs-volume:/pfe/avito-scrapy-server/logs
env_file:
- .env
ports:
- "6800:6800"
networks:
- monstache-network
elasticsearch:
image: elasticsearch:7.7.0
container_name: elasticsearch
volumes:
- esdata:/usr/share/elasticsearch/data
env_file:
- elasticsearch.env
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: "curl -s http://elasticsearch:9200 >/dev/null || exit 1"
interval: 1s
timeout: 30s
retries: 300
ulimits:
memlock:
soft: -1
hard: -1
networks:
- monstache-network
kibana:
image: kibana:7.7.0
container_name: kibana
env_file:
- kibana.env
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- monstache-network
monstache:
restart: always
build:
context: ./monstache
dockerfile: Dockerfile
volumes:
- monstachedata:/home
command: -f /home/monstache.config.toml &
depends_on:
- elasticsearch
- mongo1
- mongo2
- mongo3
links:
- elasticsearch
# ports:
# - "8080:8080"
networks:
- monstache-network
mongo1:
image: "mongo"
ports:
- "27020:27017"
volumes:
- mongodata:/home/psw/data
networks:
- monstache-network
command: mongod --replSet replication
mongo2:
image: "mongo"
ports:
- "27021:27017"
volumes:
- mongodata1:/home/psw/data
networks:
- monstache-network
command: mongod --replSet replication
depends_on:
- mongo1
mongo3:
image: "mongo"
ports:
- "27022:27017"
volumes:
- mongodata2:/home/psw/data
networks:
- monstache-network
command: mongod --replSet replication
depends_on:
- mongo2
mongosetup:
build:
context: ./mongo-setup
dockerfile: Dockerfile
depends_on:
- mongo1
networks:
- monstache-network
volumes:
avito-logs-volume:
avitoscraperdata:
frontentdata:
backenddata:
monstachedata:
mongodata:
mongodata1:
mongodata2:
mongostatus:
esdata:
networks:
monstache-network:
driver: bridge