Skip to content

Commit

Permalink
Image configuration updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-davis authored and petrosagg committed Jun 15, 2021
1 parent ff7d88f commit c58b726
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '2'
services:
postgres:
image: "sfackler/rust-postgres-test:6"
image: "sfackler/rust-postgres-test:7"
ports:
- 5433:5433
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM postgres:12

ENV POSTGRES_PASSWORD="password"

COPY sql_setup.sh /docker-entrypoint-initdb.d/
2 changes: 2 additions & 0 deletions docker/sql_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ port = 5433
ssl = on
ssl_cert_file = 'server.crt'
ssl_key_file = 'server.key'
wal_level = logical
EOCONF

cat > "$PGDATA/pg_hba.conf" <<-EOCONF
Expand All @@ -82,6 +83,7 @@ host all ssl_user ::0/0 reject
# IPv4 local connections:
host all postgres 0.0.0.0/0 trust
host replication postgres 0.0.0.0/0 trust
# IPv6 local connections:
host all postgres ::0/0 trust
# Unix socket connections:
Expand Down

0 comments on commit c58b726

Please sign in to comment.