-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1.01 KB
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
version: "3.3"
services:
scanner:
build: .
command: /bin/sh -c 'crontab /crontab;/usr/sbin/cron; touch /tmp/scanner.log; tail -qf /tmp/scanner.log 2>/dev/null'
volumes:
- ${PWD}/crontab:/crontab
- ${PWD}/.env:/.env
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
container_name: es01
network_mode: host
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
kib01:
image: docker.elastic.co/kibana/kibana:7.12.0
container_name: kib01
network_mode: host
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://localhost:9200
ELASTICSEARCH_HOSTS: '["http://localhost:9200"]'
volumes:
data01:
driver: local