Modifying postgres.conf inside Docker
Open a shell in Docker to change the configuration on a running container.
Edit and then save the config file, modifying the setting for the desired configuration parameter (for example,
max_wal_size).Restart the container so the config gets reloaded.
Test to see if the change worked.