Skip to content

[FAQ Bot] NEW: Why does my GitHub Actions workflow that uses a Postgres service work on - #416

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
faq-bot/issue-415
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
faq-bot/issue-415

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

✨ FAQ NEW

Course: ai-dev-tools-zoomcamp
Section: 03-deployment (The issue is about Unit 3 homework CI/container testing with act, service containers, and PostgreSQL connectivity—this fits the Unit 3 deployment/testing/containerization scope best.)
Related Issue: #415

Question

Why does my GitHub Actions workflow that uses a Postgres service work on GitHub Actions but fail under act with localhost connection refused, and what hostname should I use?

Decision Rationale

The repository does not yet contain an FAQ about running CI workflows locally with act and service-container networking/localhost vs service hostname for PostgreSQL. This proposal explains a specific troubleshooting cause and provides a concrete fix that would help future students.

Placement Details

  • Section ID: 03-deployment
  • Sort Order: End of section
  • Filename Slug: act-postgres-localhost-connection-refused

🤖 Generated by FAQ Bot

Closes #415

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FAQ] HW3 with act: the postgres service is "healthy" but the API dies with "connection refused" on localhost:5432

0 participants