postgres reachable from outside container

This commit is contained in:
counterweight 2025-02-14 23:37:32 +01:00
parent 15ffabebf3
commit 1c95c2251d
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -6,6 +6,10 @@ RUN apt-get update && apt-get install -y \
postgresql caddy nodejs npm && \
rm -rf /var/lib/apt/lists/*
RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf && \
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf && \
echo "host all all ::/0 md5" >> /etc/postgresql/15/main/pg_hba.conf
# Set up working directory for Express app
WORKDIR /app
COPY package*.json ./