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

  • akka node in docker explicitly disassociated
  • “psql: fe_sendauth: no password supplied” when running postgres as a Docker service
  • How can I deploy to a specific app with heroku docker:release?
  • Can we use Apache Kafka that is dockerized in production?
  • In docker run --ulimit cpu=10 does not work in some cases
  • Unable to follow sandbox link in Apache Mesos
  • 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
    

  • Docker ignores local project
  • Can't discover docker container on user defined network
  • Using RabbitMQ in for communication between different Docker container
  • What are the correct Permissions for docker in docker as another user?
  • Docker Compose only starts one container
  • Where to add client certificates for Docker for Mac?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.