Skip to content

Commit

Permalink
Add postgresql.conf to customize values in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Apr 22, 2024
1 parent 71e84de commit 586e825
Show file tree
Hide file tree
Showing 2 changed files with 809 additions and 1 deletion.
12 changes: 11 additions & 1 deletion images/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ RUN mkdir -p db
RUN mkdir -p lib
ADD functions/ db/functions/
ADD lib/quad_tile/ lib/quad_tile/

RUN make -C db/functions/
RUN chown -R postgres lib/
RUN chown -R postgres db/

## Validate postgresql.conf file
COPY config/postgresql.conf /etc/postgresql/postgresql.conf
RUN mkdir /var/lib/postgresql/test_data
RUN chown postgres:postgres /var/lib/postgresql/test_data
USER postgres
RUN initdb -D /var/lib/postgresql/test_data
USER root

# Set the default command to run PostgreSQL
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
Loading

0 comments on commit 586e825

Please sign in to comment.