-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yaml
129 lines (117 loc) · 2.79 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
services:
crawl_driver:
build:
context: ./selenium-optmeowt-crawler
ports:
- "5901:5901"
- "6901:6901"
environment:
- DEBUG_MODE=${DEBUG_MODE}
- TEST_CRAWL=${TEST_CRAWL}
- CRAWL_ID=${CRAWL_ID}
- MARIADB_ROOT_PASSWORD=toor
- TIMESTAMP=${TIMESTAMP}
user: "0"
volumes:
- ./crawl_results:/srv/analysis/selenium-optmeowt-crawler/crawl_results
networks:
- mariadb_network
depends_on:
mariadb:
condition: service_healthy
rest_api:
condition: service_healthy
crawl_browser:
condition: service_started
well_known_crawl:
build:
context: ./well-known-crawl
environment:
- TEST_CRAWL=${TEST_CRAWL}
- CRAWL_ID=${CRAWL_ID}
- TIMESTAMP=${TIMESTAMP}
user: "0"
volumes:
- ./crawl_results:/crawl_results
- ./selenium-optmeowt-crawler/crawl-sets:/crawl-sets
networks:
- mariadb_network
depends_on:
crawl_driver:
condition: service_completed_successfully
rest_api:
build:
context: ./rest_api
ports:
- "8080:8080"
environment:
- DEBUG_MODE=${DEBUG_MODE}
- MARIADB_ROOT_PASSWORD=toor
- DB_HOST=mariadb
- DB_CONNECTION=mysql
- DB_DATABASE=analysis
- DB_USERNAME=root
- DB_PASSWORD=toor
networks:
- mariadb_network
depends_on:
mariadb:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://rest_api:8080/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 3
restart: on-failure
mariadb:
build:
context: ./mariadb-compose
container_name: mariadb-compose
environment:
- DB_CONNECTION=mysql
- DB_DATABASE=analysis
- DB_USERNAME=root
- MARIADB_ROOT_PASSWORD=toor
ports:
- "3306:3306"
networks:
- mariadb_network
healthcheck:
test: ["CMD", "mariadb-admin" ,"ping", "-h", "localhost", "-ptoor"]
interval: 5s
timeout: 3s
retries: 10
start_period: 30s
restart: unless-stopped
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- "80:80"
environment:
- PMA_HOST=mariadb
- PMA_PORT=3306
- MARIADB_ROOT_PASSWORD=toor
networks:
- mariadb_network
depends_on:
mariadb:
condition: service_healthy
crawl_browser:
image: selenium/standalone-firefox:nightly
privileged: true
ports:
- "4444:4444"
environment:
- SE_START_VNC=false
volumes:
- ./selenium-optmeowt-crawler/ff-optmeowt-2.0.1.xpi:/extensions/ff-optmeowt-2.0.1.xpi
networks:
- mariadb_network
shm_size: 2g
volumes:
mariadb:
driver: local
networks:
mariadb_network:
driver: bridge