forked from di-unipi-socc/DockerFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (113 loc) · 3.47 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
version: "2"
services:
#####################################################
############### ANALYSIS PHASE ####################
#####################################################
crawler:
build:
context: analysis
dockerfile: ./Dockerfile_crawler
command: [crawl, '--save-url=/data/crawler/lasturl.txt', '--amqp-url=amqp://guest:guest@rabbitmq:5672', '--images-url=http://images_server:3000/api/images/', '--queue=images'] #,'--mi=100'] #, '--fp=100', '--ps=10']
volumes:
- /data/crawler/
# labels:
# - "constraint:node==didoUbuntu"
# networks:
# - docker-finder
# Schedule containers on a specific node
# environment:
# - "constraint:node==node-1"
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
#restart: on-failure:3
restart: always
#container_name: rabbitmq
ports:
- 8082:15672
volumes:
- /var/lib/rabbitmq
# labels:
# - "constraint:node==didoUbuntu"
# networks:
# - docker-finder
scanner:
build:
context: analysis
dockerfile: ./Dockerfile_scanner
command: [run, '--images-url=http://images_server:3000/api/images/', '--queue=images', '--key=images.scan', '--software-url=http://software_server:3001/api/software', '--rmi']
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# networks:
# - docker-finder
checker:
build:
context: analysis
dockerfile: ./Dockerfile_checker
command: [run, '--interval=30','--path-logging=/data/crawler/log/stats.log','--images-url=http://images_server:3000/api/images/', '--queue=images', '--key=images.scan','--amqp-url=amqp://guest:guest@rabbitmq:5672']
volumes:
- /dockerfinder/checker/log:/data/crawler/log
#####################################################
############### DISCOVERY PHASE ####################
#####################################################
# Web Software
software_server:
build: discovery/softwareService/software_server
ports:
- "3001:3001"
labels:
- "constraint:node==didoUbuntu"
# networks:
# - docker-finder
# Software database
software_db:
image: mongo:3
#container_name: software_mongo
volumes:
- /data/db
# labels:
# - "constraint:node==didoUbuntu"
# networks:
# - docker-finder
#####################################################
############### STORAGE PHASE ####################
#####################################################
# Web images
images_server:
build: storage/images_server
#image: dofinder/imagesserver:latest
#container_name: images_server
#restart: always
restart: on-failure:3
ports:
- "3000:3000"
# labels:
# - "constraint:node==didoUbuntu"
#depends_on:
# - images_db
# networks:
# - docker-finder
# Images database
images_db:
image: mongo:3
#container_name: images_mongo
volumes:
- /data/db
# /data/db is the deafult directory where mogno container store the databases.
# labels:
# - "constraint:node==didoUbuntu"
# networks:
# - docker-finder
#####################################################
############### MANAGEMENT PHASE ####################
#####################################################
monitor:
#container_name: monitor
build: management
ports:
- "3002:3002"
# labels:
# - "constraint:node==didoUbuntu"
# networks:
# docker-finder:
# external: true