From 20ffc45f893f2da3d225bfd7462867af9f7bb12f Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 2 Dec 2025 22:07:00 +0000 Subject: [PATCH] tsk-49: Add catapult to docker (#50) Closes #49 Reviewed-on: https://git.kundeng.us/phoenix/textsender-api/pulls/50 Co-authored-by: phoenix Co-committed-by: phoenix --- docker-compose.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index f53b276..fb88584 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,7 @@ services: build: # Tells docker-compose to build the Dockerfile in the current directory context: . ssh: ["default"] # Uses host's SSH agent - container_name: textsender # Optional: Give the container a specific name + container_name: textsender_api # Optional: Give the container a specific name ports: # Map host port 8000 to container port 3000 (adjust as needed) - "8080:8080" @@ -19,7 +19,7 @@ services: restart: unless-stopped # Optional: Restart policy auth_api: - build: # Tells docker-compose to build the Dockerfile in the current directory + build: context: ../textsender-auth ssh: ["default"] # Uses host's SSH agent dockerfile: Dockerfile @@ -36,6 +36,21 @@ services: - textsender-network restart: unless-stopped # Optional: Restart policy + catapult: + build: + context: ../catapult + ssh: ["default"] + dockerfile: Dockerfile + container_name: catapult + env_file: + - ../catapult/.env + depends_on: + - auth_api + - api + networks: + - textsender-network + restart: unless-stopped + # PostgreSQL Database Service main_db: image: postgres:18.0-alpine # Use an official Postgres image (Alpine variant is smaller)