Update Dockerfile

This commit is contained in:
Alexandre
2024-01-31 11:15:16 +01:00
committed by GitHub
parent 40c99a169e
commit 0ac2d2357c

View File

@@ -30,8 +30,9 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
RUN \
# Correct for access
sed -i "s|.*listen_addresses(.*)|listen_addresses = '*'(1)|g" /usr/share/postgresql/postgresql.conf.sample && \
sed -i "s|.*data_directory(.*)|data_directory = '/config/database'(1)|g" /usr/share/postgresql/postgresql.conf.sample
for file in /usr/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample; do \
sed -i "s|.*listen_addresses(.*)|listen_addresses = '*'(1)|g" "$file" && \
sed -i "s|.*data_directory(.*)|data_directory = '/config/database'(1)|g" "$file"; done
##################
# 3 Install apps #