title: docker-compose up is starting the container and immediately stopping them
body: <p>I am trying to build services using docker-compose but containers started using docker-compose is stopping immediately as compose script is over. But when i am creating container using docker run for the same service image it is working.</p>
  
  <p>Here is my compose script:</p>
  
  <pre><code>version: '2.1'
  
  networks:
   composetestnetwork:
    driver: bridge
     ipam:
      driver: default
      config:
       - subnet: 172.19.0.0/16
         gateway: 172.19.0.1
  
  services:
   composetestdb:
    build:
     context: .
     dockerfile: Dockerfile-testdb
    cap_add:
     - ALL
    container_name: my-db-compose-container
    labels:
     db.description: "This is a test db"
    volumes:
     - c:/Users:/data
    networks:
     composetestnetwork:
      ipv4_address: 172.19.0.5
    ports:
     - "3306:3306"
    command: 'bash'
  </code></pre>
  
  <p>What can be done to fix this.</p>