From b96798c19c2e35f8fab5ea25706873dbbd5b0855 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Tue, 12 Sep 2023 15:00:22 +0530 Subject: [PATCH] gh-actions/start.sh: add tapi_db Signed-off-by: Vallari Agrawal --- gh-actions/start.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gh-actions/start.sh b/gh-actions/start.sh index 025f2e8..14e5183 100755 --- a/gh-actions/start.sh +++ b/gh-actions/start.sh @@ -7,13 +7,34 @@ if [ ! -d "$folder" ] ; then build: context: ../../../../ ports: - - 8082:8082 + - 8082:8080 + environment: + TEUTHOLOGY_API_SQLALCHEMY_URL: postgresql+psycopg2://admin:password@tapi_db:5432/tapi_db depends_on: - teuthology - paddles + - tapi_db links: - teuthology - paddles + - tapi_db + tapi_db: + image: postgres:14 + healthcheck: + test: [ "CMD", "pg_isready", "-q", "-d", "tapi_db", "-U", "admin" ] + timeout: 5s + interval: 10s + retries: 2 + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD=password + - APP_DB_USER=admin + - APP_DB_PASS=password + - APP_DB_NAME=tapi_db + volumes: + - ./db:/docker-entrypoint-initdb.d/ + ports: + - 5433:5432 " >> teuthology/docs/docker-compose/docker-compose.yml fi cd teuthology/docs/docker-compose