Skip to content

Commit

Permalink
gh-actions/start.sh: add tapi_db
Browse files Browse the repository at this point in the history
Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
  • Loading branch information
VallariAg committed Sep 26, 2023
1 parent 7daf63f commit b7b8787
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions gh-actions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,34 @@ if [ ! -d "$folder" ] ; then
environment:
TEUTHOLOGY_API_SERVER_HOST: 0.0.0.0
TEUTHOLOGY_API_SERVER_PORT: 8080
TEUTHOLOGY_API_SQLALCHEMY_URL: postgresql+psycopg2://admin:password@tapi_db:5432/tapi_db
depends_on:
- teuthology
- paddles
- tapi_db
links:
- teuthology
- paddles
- tapi_db
healthcheck:
test: [ "CMD", "curl", "-f", "http://0.0.0.0:8082" ]
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
Expand Down

0 comments on commit b7b8787

Please sign in to comment.