forked from apache/kibble-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
62 lines (57 loc) · 1.38 KB
/
docker-compose-dev.yaml
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
version: '3'
services:
# Helper service to setup the Apache Kibble es node
setup:
image: &img apache/kibble
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "python kibble/setup/setup.py -e elasticsearch -a -k"
volumes:
- .:/kibble/
depends_on:
- elasticsearch
# Apache Kibble API server
kibble:
image: *img
command: bash -c "gunicorn --reload -w 1 -b 0.0.0.0:8001 kibble.api.handler:application"
expose:
- 8001
ports:
- 8001:8001
volumes:
- .:/kibble/
depends_on:
- elasticsearch
# Apache Kibble web ui server
ui:
image: nginx:latest
volumes:
- ./nginx-dev.conf:/etc/nginx/nginx.conf
- ./ui/:/kibble/ui/
ports:
- 8000:8000
depends_on:
- kibble
# Elasticsearch node required as a database for Apache Kibble
elasticsearch:
image: elasticsearch:7.9.2
ports:
- "9200:9200"
- "9300:9300"
environment:
node.name: es01
discovery.seed_hosts: es02
cluster.initial_master_nodes: es01
cluster.name: traefik-tutorial-cluster
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: -Xms256m -Xmx256m
volumes:
- "kibble-es-data:/usr/share/elasticsearch/data"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
# named volumes can be managed easier using docker-compose
kibble-es-data: