mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
21daa56ee1
I have a use case where I'd like the Synapse image to start up a postgres instance that I can use, but don't want to force Synapse to use postgres as well. This commit prevents postgres from being started when it has already been explicitly enabled elsewhere.
20 lines
564 B
Plaintext
20 lines
564 B
Plaintext
[program:postgres]
|
|
command=/usr/local/bin/prefix-log gosu postgres postgres
|
|
|
|
# Only start if START_POSTGRES=true
|
|
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
|