Skip to content

Commit

Permalink
Moved password to .env.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbcunc committed Nov 2, 2022
1 parent c08ed27 commit 286a209
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PGPASSWORD=postgres
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
A datbase for Hydroshare based on official images.

1. Open port 5432 on the host's firewall to the subnets making connections.
1. Set `PGPASSWORD` in `.env`.
1. `docker-compose up -d`
1. Place a SQL dump to load into the database in /var/scratch/pg.deploy.sql on the host.
1. `./loaddb.sh`
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
postgis:
image: postgis/postgis:15-3.3
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_PASSWORD: ${PGPASSWORD?PGPASSWORD is unset}
container_name: postgis
restart: unless-stopped
volumes:
Expand Down

0 comments on commit 286a209

Please sign in to comment.