Skip to content

Commit

Permalink
Added support for custom POSTGRES_ARGS.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Nov 13, 2024
1 parent f895d91 commit 4e9ae7e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions 16.4/config/postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}
2 changes: 1 addition & 1 deletion 16.4/config/supervisor/postgres.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:postgres]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh postgres
command=/usr/local/bin/postgres.sh
user=root
autostart=true
autorestart=true
Expand Down
5 changes: 5 additions & 0 deletions 17.0/config/postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}
2 changes: 1 addition & 1 deletion 17.0/config/supervisor/postgres.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:postgres]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh postgres
command=/usr/local/bin/postgres.sh
user=root
autostart=true
autorestart=true
Expand Down
5 changes: 5 additions & 0 deletions config/postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

export POSTGRES_ARGS=${POSTGRES_ARGS:-''}

exec /usr/local/bin/docker-entrypoint.sh postgres ${POSTGRES_ARGS}
2 changes: 1 addition & 1 deletion config/supervisor/postgres.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:postgres]
priority=20
directory=/tmp
command=/usr/local/bin/docker-entrypoint.sh postgres
command=/usr/local/bin/postgres.sh
user=root
autostart=true
autorestart=true
Expand Down

0 comments on commit 4e9ae7e

Please sign in to comment.