Skip to content

Commit acc704c

Browse files
committed
set postgres service name as host
1 parent df2e3f8 commit acc704c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- "3.11"
4545
db-url:
4646
- "sqlite+aiosqlite:///./db.sqlite3"
47-
- "postgresql+asyncpg://user:passwd@localhost:5432/postgres"
47+
- "postgresql+asyncpg://user:passwd@postgres:5432/app"
4848

4949
# Service containers to run with `container-job`
5050
services:
@@ -56,7 +56,7 @@ jobs:
5656
env:
5757
POSTGRES_USER: user
5858
POSTGRES_PASSWORD: passwd
59-
POSTGRES_DB: postgres
59+
POSTGRES_DB: app
6060
# Set health checks to wait until postgres has started
6161
options: >-
6262
--health-cmd pg_isready

0 commit comments

Comments
 (0)