How do I start one service in docker-compose without checking for or starting any dependencies?

Viewed 9972

We are using docker-compose in our dev environment to start all the services.

Does any one know if I can start just 1 service using docker-compose without checking if dependencies are running or not (since I know they are running)?

$ docker-compose -f docker-compose-service1.yml  up

it gives an error: ERROR: Service ‘service1’ depends on service ‘service2’ which is undefined.

The yml file looks something like:

version: '2'
services:

  service1:
    build: ./service1
    dns: 192.168.1.100
    depends_on:
      - "service2"
    container_name: service1

I just want to start service1 since I know all the dependencies are already running.

1 Answers
Related