Skip to content

Commit f1e6831

Browse files
authored
Update docker-compose.yml
1 parent bb32a0b commit f1e6831

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker-compose.yml

+24
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,30 @@ services:
180180
- ${MAILHOG_SMTP_PORT}:1025
181181
- ${MAILHOG_HTTP_PORT}:8025
182182

183+
elasticsearch:
184+
image: elasticsearch:${ELASTICSEARCH_TAG}
185+
container_name: ${PROJECT_NAME}-elasticsearch
186+
hostname: elasticsearch
187+
restart: always
188+
stop_grace_period: 10s
189+
environment:
190+
discovery.type: single-node
191+
ES_JAVA_OPTS: -Xms1g -Xmx1g
192+
xpack.security.enabled: false
193+
volumes:
194+
- elasticsearch-data:/usr/share/elasticsearch/data
195+
ports:
196+
- ${ELASTICSEARCH_PORT}:9200
197+
198+
kibana:
199+
image: kibana:${KIBANA_TAG}
200+
container_name: ${PROJECT_NAME}-kibana
201+
hostname: kibana
202+
restart: always
203+
stop_grace_period: 10s
204+
ports:
205+
- ${KIBANA_PORT}:5601
206+
183207
networks:
184208
default:
185209
name: $PROJECT_NAME

0 commit comments

Comments
 (0)