Skip to content

Commit

Permalink
Adjust postgres docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS committed Oct 12, 2022
1 parent c9888f1 commit ef6b035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ services:
POSTGRES_DB: '${POSTGRES_DB}'
# point to where the config files are located
# see https://www.postgresql.org/docs/current/runtime-config-file-locations.html
PGDATA: '/'
PGDATA: '/var/lib/postgresql/mapswipe'
WALG_GS_PREFIX: '${WALG_GS_PREFIX}'
GOOGLE_APPLICATION_CREDENTIALS: '/serviceAccountKey.json'
# Set options for WAL-G (backup tool)
command: postgres -c archive_mode=on -c archive_timeout=60 -c archive_command="/archive_command.sh %p"
command: postgres -c archive_mode=on -c archive_timeout=60 -c archive_command="/archive_command.sh %p" -c config_file=/postgresql.conf -c hba_file=/pg_hba.conf
volumes:
- ./postgres-data:/var/lib/postgresql/mapswipe
restart: unless-stopped
Expand Down
3 changes: 0 additions & 3 deletions postgres/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.

# set the data directory (this overrides any value passed as PGDATA env var or -D command line option
# see https://www.postgresql.org/docs/current/runtime-config-file-locations.html
data_directory = '/var/lib/postgresql/mapswipe'
#data_directory = 'ConfigDir' # use data in another directory
# (change requires restart)
#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
Expand Down

0 comments on commit ef6b035

Please sign in to comment.