Update postgres-service.yml

This commit is contained in:
Chris Patterson
2019-08-20 15:21:58 -04:00
committed by GitHub
parent aad24ec0c2
commit dfd84e0637

View File

@@ -50,7 +50,8 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
# will assign a random free host port
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
@@ -64,4 +65,4 @@ jobs:
# use postgres for the host here because we have specified a contaienr for the job.
# If we were running the job on the VM this would be localhost
POSTGRES_HOST: localhost
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} # get randomly assigned published port