docker-compose restart always not issuing run command

I am somewhat new to docker-compose and am having trouble with understanding the restart option. I have a container that runs a service talking to Jira, sometimes the container will go down for a variety of reasons. I figured that adding

restart: always

would cause the container to restart and run the command, however it restarts but never runs the compose command. Here is my docker-compose.yml

  • Insufficient scope when attempting to get Docker Hub catalog
  • Sharing devices (webcam, USB drives, etc) with Docker
  • Docker create a test machine
  • gnome-desktop docker image works with Linux Mint Host but not CentOS?
  • vuejs application does not run with dockerized npm
  • Create smoke container to link other docker container
  • jira_service:
      container_name: jira_service
      hostname: jira_service
      working_dir: /auto_build
      extends:
        file: ./auto_build/common.yml
        service: auto_build
      command: bash -c "python init_db.py && python jira_service.py"
      links:
        - db
      restart: always
      volumes_from:
        - log_data
    

    The documentation for this option is seriously lacking, I am running docker 1.9.1 and docker-compose 1.5.2. Has anyone had success with this?

    EDIT:

    It may be helpful to include the dockerfile that this is being run and built on:

    FROM python:3.4
    ADD . /auto_build
    WORKDIR /auto_build
    RUN apt-get update
    RUN apt-get install -y unixodbc-dev unixodbc odbc-postgresql
    RUN apt-get install -y python-psycopg2
    RUN pip install -r requirements.txt
    RUN apt-get install -y git
    

  • tor browser in docker, how using with X or Wayland
  • Docker linking db container with spring boot and get environment variables
  • Trying the docker mysql image but user/password does not work
  • Docker - Handling multiple services in a single container
  • Automatic way to pick up the hostname inside docker container
  • Using ccache when building inside of docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.