# Logstash exits after successfully installing plugin with docker-compose exited with code 0

**URL:** https://discuss.elastic.co/t/logstash-exits-after-successfully-installing-plugin-with-docker-compose-exited-with-code-0/287607
**Category:** Logstash
**Tags:** docker
**Created:** [October 25, 2021, 4:43pm UTC](https://discuss.elastic.co/t/logstash-exits-after-successfully-installing-plugin-with-docker-compose-exited-with-code-0/287607 "2021-10-25T16:43:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kumar\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_reddy/32/96298_2.png) [@Kumar\_Reddy](https://discuss.elastic.co/u/Kumar_Reddy)
#### Post date: [October 25, 2021, 4:43pm UTC](https://discuss.elastic.co/t/logstash-exits-after-successfully-installing-plugin-with-docker-compose-exited-with-code-0/287607/1 "2021-10-25T16:43:43Z")

</div>

I am trying to run an Elastic stack and I am trying to install a logstash plugin within the docker compose file. I am getting the message that the plugin is installed successful and right after that the container exits with code 0.

Here is my docker compose file :-

version: '3.7'

services:  
Elasticsearch:  
image: [docker.elastic.co/elasticsearch/elasticsearch:7.15.1](http://docker.elastic.co/elasticsearch/elasticsearch:7.15.1)  
ports:  
- '9200:9200'  
environment:  
- discovery.type=single-node  
ulimits:  
memlock:  
soft: -1  
hard: -1

logstash:  
image: [docker.elastic.co/logstash/logstash:7.15.1](http://docker.elastic.co/logstash/logstash:7.15.1)  
command: /usr/share/logstash/bin/logstash-plugin install logstash-integration-jdbc  
ports:  
- '5000:5000'  
volumes:  
- type: bind  
source: /opt/data/magiluser/logstash/  
target: /usr/share/logstash/pipeline  
read\_only: true

kindly let me kow how to fix this

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 22, 2021, 4:44pm UTC](https://discuss.elastic.co/t/logstash-exits-after-successfully-installing-plugin-with-docker-compose-exited-with-code-0/287607/2 "2021-11-22T16:44:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
