postgres reachable from outside container
This commit is contained in:
parent
15ffabebf3
commit
1c95c2251d
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ RUN apt-get update && apt-get install -y \
|
||||||
postgresql caddy nodejs npm && \
|
postgresql caddy nodejs npm && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
# Set up working directory for Express app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue