-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
48 lines (45 loc) · 1.1 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
version: "3.7"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.6.2
container_name: elasticsearch
restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
networks:
- gosharper
ports:
- 9200:9200
expose:
- 9200
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.6.2
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 # address of elasticsearch docker container which kibana will connect
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 5601:5601
networks:
- gosharper
depends_on:
- elasticsearch
postgres:
image: postgres
environment:
POSTGRES_DB: gosharperdb
POSTGRES_USER: gosharperuser
POSTGRES_PASSWORD: gosharperpassword
ports:
- 5432:5432
expose:
- 5432
networks:
- gosharper
restart: unless-stopped
networks:
gosharper:
driver: bridge