-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (57 loc) · 1.28 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
version: '2.2'
services:
api-python:
build:
context: ./ranking_system
dockerfile: Dockerfile
command: python3 /codebase/api_server.py
privileged: true
depends_on:
- mongo-db
healthcheck:
test: ["CMD", "bash", "./healtcheck.sh", "http://api-python:5000/"]
interval: 30s
timeout: 10s
retries: 10
volumes:
- ./ranking_system/dataset:/dataset
- ./ranking_system/tmpdata:/tmpdata
- ./ranking_system/cluster:/cluster
- ./ranking_system/weights:/root/.keras/models/
ports:
- 5000:5000
networks:
- lostpet
api-js:
build:
context: ./vk_interaction_obj_rec
dockerfile: Dockerfile
command: node VkWall.js
depends_on:
api-python:
condition: service_healthy
networks:
- lostpet
scheduler-py:
build:
context: ./scheduler
dockerfile: Dockerfile
command: python3 /codebase/main.py
depends_on:
api-python:
condition: service_healthy
networks:
- lostpet
mongo-db:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=rootPassXXX
- API_URL="{{ vk_token }}"
ports:
- 27017:27017
networks:
- lostpet
networks:
lostpet:
driver: bridge