title: Docker Compose Entry Point File
body: <p>I have a docker compose file and want to install maven inside nimbus container once the container is created. I added docker-entrypoint.sh file to compose image but not sure if this is the write way to override entrypoint file</p>
  
  <p><strong>docker-compose file</strong></p>
  
  <pre><code>image: storm:2.1.0
  container_name: nimbus
  entrypoint: /docker-entrypoint.sh
  </code></pre>
  
  <p><strong>docker-entrypoint.sh</strong></p>
  
  <pre><code>#!/bin/bash
  set -e
  # fi
  #install nano 
  apt update
  apt install nano
  #install ping
  apt-get install iputils-ping
  #installmaven 
  apt install maven
  exec "$@"
  </code></pre>