From 5ba7a265d0ff38e6c40ba624fd91d031c45219bd Mon Sep 17 00:00:00 2001 From: Nico Vermaas <vermaas@astron.nl> Date: Fri, 18 Dec 2020 11:23:45 +0100 Subject: [PATCH] experimenting with postgres config --- atdb/docker/postgres/Dockerfile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/atdb/docker/postgres/Dockerfile b/atdb/docker/postgres/Dockerfile index 49f74b41..0839c456 100644 --- a/atdb/docker/postgres/Dockerfile +++ b/atdb/docker/postgres/Dockerfile @@ -31,22 +31,8 @@ RUN /etc/init.d/postgresql start &&\ psql --command "CREATE USER dbadmin WITH SUPERUSER PASSWORD 'dbadmin123';" &&\ createdb -O dbadmin atdbldv -# Adjust PostgreSQL configuration so that remote connections to the -# database are possible. -RUN echo "local all dbadmin md5" >> /etc/postgresql/9.4/main/pg_hba.conf -RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.4/main/pg_hba.conf - -# And add ``listen_addresses`` to ``/etc/postgresql/9.4/main/postgresql.conf`` -RUN echo "listen_addresses='*'" >> /etc/postgresql/9.4/main/postgresql.conf - # Add VOLUMEs to allow backup of config, logs and databases -VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"] +# VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"] # Set the default command to run when starting the container CMD ["/usr/lib/postgresql/9.4/bin/postgres", "-D", "/var/lib/postgresql/9.4/main", "-c", "config_file=/etc/postgresql/9.4/main/postgresql.conf"] - -# build the image like this: -# docker build -t atdb-ldv-postgres . - -# run the container from here, like this: -# docker run -d --name atdb-ldv-postgres -p 5432:5432 --mount type=bind,source="/home/vermaas/shared",target=/shared --restart always atdb-ldv-postgres \ No newline at end of file -- GitLab