From 1dc7e3b4549b264fd0a4ad450a5a08659fc1bf5b Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Fri, 24 Nov 2023 01:06:35 +0000 Subject: [PATCH] docker: Add dependencies, so that services can be started individually. --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cf47d1e5..0ace32b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,9 @@ services: - .:/code - store:/store command: run app --primary + depends_on: + - "mongo" + - "redis" worker: << : *app-image @@ -30,12 +33,16 @@ services: - .:/code - store:/store command: run worker + depends_on: + - "app" notifier: << : *app-image volumes: - .:/code command: run notifier + depends_on: + - "app" uploader: << : *app-image @@ -43,6 +50,8 @@ services: - .:/code - store:/store command: run uploader + depends_on: + - "app" downloader: << : *app-image @@ -50,6 +59,8 @@ services: - .:/code - store:/store:ro command: run downloader + depends_on: + - "app" sitemap: << : *app-image @@ -57,6 +68,8 @@ services: - .:/code - sitemap:/sitemap command: run sitemap + depends_on: + - "app" volumes: store: