Skip to content

Commit ef6b035

Browse files
committed
Adjust postgres docker config
1 parent c9888f1 commit ef6b035

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

postgres/postgresql.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
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

0 commit comments

Comments
 (0)