diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-05 03:57:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-05 03:57:21 +0900 |
| commit | 296aa3f8a145a8fbc08db9f5b1d45fe6f72a38a4 (patch) | |
| tree | 11180e08e96e1adb492b3aa52d32edd79a669711 /compose.local.yaml | |
| parent | 9ff9c151e5defd9eed5cba3c88bc341b4360d09c (diff) | |
| download | phperkaigi-2025-albatross-296aa3f8a145a8fbc08db9f5b1d45fe6f72a38a4.tar.gz phperkaigi-2025-albatross-296aa3f8a145a8fbc08db9f5b1d45fe6f72a38a4.tar.zst phperkaigi-2025-albatross-296aa3f8a145a8fbc08db9f5b1d45fe6f72a38a4.zip | |
feat: implement task queue
Diffstat (limited to 'compose.local.yaml')
| -rw-r--r-- | compose.local.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
