-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (111 loc) · 2.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (111 loc) · 2.87 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
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
108
109
110
111
112
113
114
115
116
117
118
version: "3.8"
services:
typesense:
image: typesense/typesense:27.1
container_name: flatbench_typesense
environment:
- TYPESENSE_DATA_DIR=/typesense-data
- TYPESENSE_API_KEY=xyz
ports:
- "8108:8108"
volumes:
- typesense_data:/typesense-data
command: --data-dir /typesense-data --api-key xyz --port 8108
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8108/health || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 5s
networks:
- flatbench
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
container_name: flatbench-elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- cluster.name=flatbench
- node.name=flatbench-node-1
ports:
- "9200:9200"
- "9300:9300"
volumes:
- es_data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 5s
retries: 20
start_period: 30s
networks:
- flatbench
flatseek:
build:
context: .
dockerfile: Dockerfile
image: flatbench-flatseek:latest
container_name: flatbench-flatseek
environment:
- FLATSEEK_PORT=8000
ports:
- "8000:8000"
volumes:
- flatseek_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8000/ || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
networks:
- flatbench
kibana:
image: docker.elastic.co/kibana/kibana:8.12.0
container_name: flatbench-kibana
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- XPACK_SECURITY_ENABLED=false
ports:
- "5601:5601"
networks:
- flatbench
profiles:
- dev # Only start with: docker-compose --profile dev up
zincsearch:
image: public.ecr.aws/zinclabs/zincsearch:latest
container_name: flatbench-zincsearch
user: root
environment:
- ZINC_FIRST_ADMIN_USER=admin
- ZINC_FIRST_ADMIN_PASSWORD=Complexpass#123
- ZINC_DATA_PATH=/data
ports:
- "4080:4080"
volumes:
- zincsearch_data:/data
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:4080/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
networks:
- flatbench
volumes:
es_data:
name: flatbench_es_data
flatseek_data:
name: flatbench_flatseek_data
typesense_data:
name: flatbench_typesense_data
zincsearch_data:
name: flatbench_zincsearch_data
networks:
flatbench:
name: flatbench_net
driver: bridge