-
-
Notifications
You must be signed in to change notification settings - Fork 139
/
docker-compose.yml
44 lines (41 loc) · 1.11 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
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.3
container_name: "elasticsearch"
environment:
- "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
- discovery.type=single-node
- xpack.security.enabled=false # note: you must secure your elasticsearch otherwise everyone can access it
# you also need to add the credentials to config.py
ports:
- 9200:9200
volumes:
- ./data/db:/usr/share/elasticsearch/data:Z
ohp:
build:
context: .
dockerfile: "Dockerfile.api"
command: bash -c "sleep 30 && python3 ohp.py --start-api-server"
environment:
- FLASK_ENV=development
- ELASTICSEARCH_DOCKER_ENV=true
ports:
- 5000:5000
volumes:
- .:/OWASP-Honeypot
links:
- elasticsearch
depends_on:
- elasticsearch
grafana:
image: grafana/grafana:latest-ubuntu
container_name: "grafana"
volumes:
- ./data/grafana:/var/lib/grafana:Z
ports:
- 3000:3000
links:
- elasticsearch
depends_on:
- elasticsearch