Skip to content

Instantly share code, notes, and snippets.

View joaoheron's full-sized avatar
🏠
Working from home

João Heron joaoheron

🏠
Working from home
  • BR
View GitHub Profile
@bskaggs
bskaggs / Dockerfile
Last active October 24, 2024 21:43
Install pyarrow on alpine in docker
FROM python:3.7-alpine3.8
RUN apk add --no-cache \
build-base \
cmake \
bash \
jemalloc-dev \
boost-dev \
autoconf \
zlib-dev \
@MauricioMoraes
MauricioMoraes / access_postgresql_with_docker.md
Last active September 29, 2025 15:14
Allow Docker Container Access to Host's Postgres Database on linux (ubuntu)

You have to do 2 things in order to allow your container to access your host's postgresql database

  1. Make your postgresql listen to an external ip address
  2. Let this client ip (your docker container) access your postgresql database with a given user

Obs: By "Host" here I mean "the server where docker is running on".

Make your postgresql listen to an external ip address

Find your postgresql.conf (in case you don't know where it is)

$ sudo find / -type f -name postgresql.conf