-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
75 lines (68 loc) · 1.69 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
version: '3.1'
volumes:
esdata:
driver: local
samples:
driver: local
gomods:
driver: local
networks:
sinkholed:
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.1
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "0.0.0.0:9200:9200"
- "0.0.0.0:9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx512m -Xms512m"
volumes:
- esdata:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http:https://localhost:9200/_cat/health"]
interval: 3s
timeout: 3s
retries: 80
networks:
- sinkholed
kibana:
image: docker.elastic.co/kibana/kibana:6.7.1
volumes:
- ./config/:/usr/share/kibana/config:ro
ports:
- "0.0.0.0:5601:5601"
networks:
- sinkholed
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http:https://localhost:5601/api/status"]
interval: 3s
timeout: 3s
retries: 80
depends_on:
- elasticsearch
sinkholed:
build:
context: .
dockerfile: ./Dockerfile.dev
ports:
- "127.0.0.1:8080:8080" # API
- "127.0.0.1:1337:1337" # SMTP
- "127.0.0.1:1338:1338" # HTTP
- "127.0.0.1:1339:1339/udp" # DNS
volumes:
- ./:/opt/sinkholed
- ./config/sinkholed.dev.yml:/etc/sinkholed/sinkholed.yml
- gomods:/root/go/pkg/mod
- samples:/var/lib/sinkholed/samples
env_file: .env
networks:
- sinkholed
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http:https://localhost:8080/api/v1/healthcheck"]
interval: 3s
timeout: 3s
retries: 80
depends_on:
- elasticsearch