Skip to content

Conversation

@github-actions
Copy link
Contributor

✨ FAQ NEW

Course: data-engineering-zoomcamp
Section: module-1 (This is a Docker-related connectivity fix affecting the ingest script, so it belongs in Module 1 (Docker and Terraform).)
Related Issue: #103

Question

OperationalError: connection to server at 'localhost' failed in ingest_script.py when running with --pg-host; how to fix by using pgdatabase?

Decision Rationale

The proposal describes a Docker/Postgres connectivity fix not explicitly covered by existing FAQs, namely changing the database host in ingest_script.py from 'localhost' to 'pgdatabase' when the container is run with --pg-host=pgdatabase.

Placement Details

  • Section ID: module-1
  • Sort Order: 76
  • Filename Slug: change-pg-host-localhost-docker

⚠️ Warnings

  • Ensure the hostname used by the script matches the docker run / docker-compose network alias.
  • If you use a different container name for your Postgres service, adjust the value accordingly.

🤖 Generated by FAQ Bot

Closes #103

@github-actions github-actions bot mentioned this pull request Jan 23, 2026
3 tasks
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]

0 participants