tsk-49: Add catapult to docker (#50)

Closes #49

Reviewed-on: phoenix/textsender-api#50
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-12-02 22:07:00 +00:00
committed by phoenix
parent fddf0f7f87
commit 20ffc45f89
+17 -2
View File
@@ -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)