-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc-user-event-store.yml
107 lines (100 loc) · 2.56 KB
/
dc-user-event-store.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
version: '2.1'
services:
user-event-store:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: on-failure
depends_on:
cassandra:
condition: service_healthy
networks:
- user-event-store
cassandra:
image: cassandra:3.11.2
ports:
- "9042:9042"
volumes:
- "./docker/cassandra/import.cql:/import.cql"
- "./docker/cassandra/init.sh:/init.sh"
command: "sh /init.sh"
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 30s
timeout: 10s
retries: 5
restart: on-failure
networks:
- user-event-store
#
# Kibana has been added due to exploring data in Elasticsearch.
#
#kibana:
# image: docker.elastic.co/kibana/kibana:6.3.2
# ports:
# - "5601:5601"
# volumes:
# - "./docker/kibana/config/:/usr/share/kibana/config:ro"
# healthcheck:
# test: ["CMD-SHELL", "curl --silent --fail http://localhost:5601 || exit 1"]
# interval: 30s
# timeout: 10s
# retries: 5
# restart: on-failure
# networks:
# - user-event-store
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
expose:
- "9200"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 10s
retries: 5
restart: on-failure
networks:
- user-event-store
logstash:
image: docker.elastic.co/logstash/logstash:6.3.2
expose:
- "5000"
volumes:
- ./docker/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./docker/logstash/pipeline:/usr/share/logstash/pipeline:ro
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9600"]
interval: 10s
timeout: 5s
retries: 10
restart: on-failure
networks:
- user-event-store
grafana:
image: grafana/grafana:5.2.1
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: ${ADMIN_USER:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin}
GF_USERS_ALLOW_SIGN_UP: "false"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_DATABASE_TYPE: "sqlite3"
volumes:
- ./docker/grafana/:/etc/grafana/provisioning/
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail http://localhost:3000 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
restart: on-failure
networks:
- user-event-store
networks:
user-event-store:
driver: bridge