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 <[email protected]>
  • Loading branch information
VallariAg committed Sep 12, 2023
1 parent f056242 commit b96798c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion gh-actions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b96798c

Please sign in to comment.