9 lines
341 B
Docker
9 lines
341 B
Docker
# 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
|
|
|