diff options
author | reivilibre <oliverw@matrix.org> | 2022-06-08 10:57:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 09:57:05 +0000 |
commit | 67f51c84f828c2043f37b987b42323e8d740bad0 (patch) | |
tree | 026a7adb212f7004d1f0490dd82e710a64fe25b3 /docker/complement/conf/postgres.supervisord.conf | |
parent | Docker Compose Worker Documentation and Examples (#12737) (diff) | |
download | synapse-67f51c84f828c2043f37b987b42323e8d740bad0.tar.xz |
Merge the Complement testing Docker images into a single, multi-purpose image. (#12881)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'docker/complement/conf/postgres.supervisord.conf')
-rw-r--r-- | docker/complement/conf/postgres.supervisord.conf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/complement/conf/postgres.supervisord.conf b/docker/complement/conf/postgres.supervisord.conf new file mode 100644 index 0000000000..5dae3e6330 --- /dev/null +++ b/docker/complement/conf/postgres.supervisord.conf @@ -0,0 +1,19 @@ +[program:postgres] +command=/usr/local/bin/prefix-log /usr/bin/pg_ctlcluster 13 main start --foreground + +# Only start if START_POSTGRES=1 +autostart=%(ENV_START_POSTGRES)s + +# Lower priority number = starts first +priority=1 + +autorestart=unexpected +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 + +# Use 'Fast Shutdown' mode which aborts current transactions and closes connections quickly. +# (Default (TERM) is 'Smart Shutdown' which stops accepting new connections but +# lets existing connections close gracefully.) +stopsignal=INT |