Docker Community Forums

Share and learn in the Docker community.

Docker-compose not respecting order run

Hi, I am using a very basic docker-compose file where I have 2 services an api service and a DB. I use

version: '3'
services:
  ms-sql-server:
    image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
    environment: 
      ACCEPT_EULA: "Y"
      SA_PASSWORD: "..........."
      MSSQL_PID: Express
    ports:
      - "1433:1433"

  colour-api:
    build: .
    ports:
      - "5000:80"
    depends_on:
      - "ms-sql-server"

When I do docker-compose up it always starts the colour-api service instead of ms-sql-server. What is missing to make docker-compose respect the order?
Thanks
Thanks

  • :whale: :arrow_right: Settings :arrow_right: Diagnose & Feedback :arrow_right: Open Issues.

This forum is not an official product support or issue reporting channel.