-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1.22 KB
/
docker-compose.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
version: "3.7"
# single node elasticsearch
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.2.3
environment:
- discovery.type=single-node
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- elasticsearch-data-volume:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.2.3
environment:
- ELASTICSEARCH_HOST=http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
postgres:
image: postgres:latest
restart: always
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "username" ]
timeout: 45s
interval: 10s
retries: 10
container_name: postgres
ports:
- 5432:5432
# Import the data from local csv file
volumes:
- ./pg_data:/var/lib/pg_data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- .env
volumes:
elasticsearch-data-volume:
driver: local