Skip to content

Commit

Permalink
postgres init.sql script for docker setup to grant privileges on rmdb…
Browse files Browse the repository at this point in the history
… for repromon user
  • Loading branch information
vmdocua committed Sep 18, 2023
1 parent 3b81a2c commit e1127fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ services:
# `PODMAN_USERNS=keep-id podman-compose up`
volumes:
- ${DB_PATH_AT_HOST}/data:/var/lib/postgresql/data
- ./docker-postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 30s
Expand Down
1 change: 1 addition & 0 deletions docker-postgres-init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRANT ALL PRIVILEGES ON DATABASE rmdb TO repromon;

0 comments on commit e1127fc

Please sign in to comment.