-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
144 lines (132 loc) · 2.99 KB
/
docker-compose.test.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
version: '3'
services:
# tor didn't worked for crunchbase
# tor-proxy:
# image: "dperson/torproxy:latest"
# restart: always
# ports:
# - "9050:9050"
# - "9051:9051"
# - "8118:8118"
# environment:
# TORUSER: 'crunchbase'
# TOR_NewCircuitPeriod: 2000
# EXITNODE: 1
# BW: 1000000
# PASSWORD: 'admin'
# tor-ipv6:
# image: "chriswayg/tor-server"
# restart: always
# ports:
# - "9053:9001"
# - "9054:9030"
# environment:
# TOR_NICKNAME: 'crunchbase'
# tor-bart:
# container_name: 'tor-bart'
# image: 'pickapp/tor-proxy:latest'
# ports:
# - '9990:8888'
# environment:
# - IP_CHANGE_SECONDS=60
crawler:
container_name: crawler
image: "crunchy/crawler"
build:
context: ./CrunchyCrawler
dockerfile: Dockerfile
restart: always
env_file:
- ${ENV_FILE}
depends_on:
rabbitmq:
condition: service_healthy
api:
container_name: api
image: "crunchy/rest"
build:
context: ./CrunchyRest
dockerfile: Dockerfile
restart: always
command: bash -c "python manage.py runserver 0.0.0.0:8000"
ports:
- "8001:8000"
env_file:
- ${ENV_FILE}
depends_on:
rabbitmq:
condition: service_healthy
ui:
container_name: ui
image: "crunchy/ui"
build:
context: ./Ui
dockerfile: Dockerfile
ports:
- "5051:80"
env_file:
- ${ENV_FILE}
depends_on:
- api
databucket:
container_name: bucket
image: "crunchy/rest"
build:
context: ./CrunchyRest
dockerfile: Dockerfile
command: bash -c "python manage.py gather_data_from_kafka"
restart: always
env_file:
- ${ENV_FILE}
depends_on:
rabbitmq:
condition: service_healthy
rabbitmq:
container_name: queue
image: "rabbitmq:management-alpine"
restart: always
hostname: queue
ports:
- "15672:15672"
- "5672:5672"
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
volumes:
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_log:/var/log/rabbitmq
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "check_running" ]
interval: 5s
timeout: 10s
retries: 5
neo4j:
container_name: graphdb
image: "neo4j:5.23.0-community-bullseye"
restart: always
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=neo4j/Abcd@1234
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4J_PLUGINS=["apoc"]
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- neo4j_import:/var/lib/neo4j/import
- neo4j_plugins:/plugins
# mongodb:
# image: "mongo:5.0"
# restart: always
# ports:
# - "27017:27017"
volumes:
rabbitmq_data:
rabbitmq_log:
neo4j_data:
neo4j_logs:
neo4j_import:
neo4j_plugins: