Skip to content

Commit

Permalink
Use postsgresql.conf for postgres in docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Aug 24, 2024
1 parent ae0cdd2 commit 3ccd429
Show file tree
Hide file tree
Showing 4 changed files with 828 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ doc:

.PHONY: postgres
postgres:
docker compose -f docker/compose.yaml up -d
docker compose -f docker/compose.yaml up -d --build
docker ps
sleep 10
docker compose -f docker/compose.yaml logs postgres --tail 10
Expand Down
6 changes: 1 addition & 5 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,5 @@ services:
command:
- "postgres"
- "-c"
- "ssl=on"
- "-c"
- "ssl_cert_file=/var/lib/postgresql/certs/pgboss.local.crt"
- "-c"
- "ssl_key_file=/var/lib/postgresql/certs/pgboss.local.key"
- "config_file=/var/lib/postgresql/postgresql.conf"
container_name: "pgboss"
7 changes: 4 additions & 3 deletions docker/postgres.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM postgres:16.4

COPY certs /var/lib/postgresql/certs
RUN chmod 600 /var/lib/postgresql/certs/*
RUN chown -R postgres:postgres /var/lib/postgresql/certs
WORKDIR /var/lib/postgresql/
COPY certs ./certs
COPY postgresql.conf .
RUN chmod 600 certs/* && chown -R postgres:postgres certs
Loading

0 comments on commit 3ccd429

Please sign in to comment.