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