From 296aa3f8a145a8fbc08db9f5b1d45fe6f72a38a4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Aug 2024 03:57:21 +0900 Subject: feat: implement task queue --- compose.local.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'compose.local.yaml') diff --git a/compose.local.yaml b/compose.local.yaml index 6e5604f..883d640 100644 --- a/compose.local.yaml +++ b/compose.local.yaml @@ -7,6 +7,8 @@ services: depends_on: db: condition: service_healthy + task-db: + condition: service_healthy environment: ALBATROSS_DB_HOST: db ALBATROSS_DB_PORT: 5432 @@ -32,6 +34,17 @@ services: - db-data:/var/lib/postgresql/data restart: always + task-db: + image: redis:7.4.0 + expose: + - 6379 + healthcheck: + test: ["CMD-SHELL", "redis-cli ping"] + interval: 10s + timeout: 5s + retries: 5 + restart: always + worker: build: context: ./worker -- cgit v1.2.3-70-g09d2