Add nginx postgres files

This commit is contained in:
PCoder 2023-12-13 10:45:07 +05:30
commit 2de44782f7
3 changed files with 38 additions and 0 deletions

9
postgres/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
# Use the official PostgreSQL image from the Docker Hub
FROM postgres:latest
# Copy custom configuration file to PostgreSQL configuration directory
COPY ./postgres/postgresql.conf /etc/postgresql/postgresql.conf
# Set the Unix socket directory
RUN echo "unix_socket_directories = '/var/run/postgresql'" >> /etc/postgresql/postgresql.conf