File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,11 @@ services:
164164 POSTGRES_DB : ' ${POSTGRES_DB}'
165165 # point to where the config files are located
166166 # see https://www.postgresql.org/docs/current/runtime-config-file-locations.html
167- PGDATA : ' /'
167+ PGDATA : ' /var/lib/postgresql/mapswipe '
168168 WALG_GS_PREFIX : ' ${WALG_GS_PREFIX}'
169169 GOOGLE_APPLICATION_CREDENTIALS : ' /serviceAccountKey.json'
170170 # Set options for WAL-G (backup tool)
171- command : postgres -c archive_mode=on -c archive_timeout=60 -c archive_command="/archive_command.sh %p"
171+ 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
172172 volumes :
173173 - ./postgres-data:/var/lib/postgresql/mapswipe
174174 restart : unless-stopped
Original file line number Diff line number Diff line change 3939# The default values of these variables are driven from the -D command-line
4040# option or PGDATA environment variable, represented here as ConfigDir.
4141
42- # set the data directory (this overrides any value passed as PGDATA env var or -D command line option
43- # see https://www.postgresql.org/docs/current/runtime-config-file-locations.html
44- data_directory = '/var/lib/postgresql/mapswipe'
4542#data_directory = 'ConfigDir' # use data in another directory
4643 # (change requires restart)
4744#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
You can’t perform that action at this time.
0 commit comments