-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use supervisord to supervise Postgres and Caddy in the Complement image. #12480
Changes from 9 commits
c3ae63f
93d3d11
19bda05
d0d360d
ea23bcd
b390b1c
70b80e3
9ef2447
a65fa98
0df4a91
32ae5e1
0140327
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use supervisord to supervise Postgres and Caddy in the Complement image. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[program:caddy] | ||
command=/usr/local/bin/prefix-log /root/caddy run --config /root/caddy.json | ||
autorestart=unexpected | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[program:postgres] | ||
command=/usr/local/bin/prefix-log /usr/bin/pg_ctlcluster 13 main start --foreground | ||
|
||
# Lower priority number = starts first | ||
priority=100 | ||
|
||
|
||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
reivilibre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
exec 1> >(awk '{print "'"${SUPERVISOR_PROCESS_NAME}"' | "$0}' >&1) | ||
exec 2> >(awk '{print "'"${SUPERVISOR_PROCESS_NAME}"' | "$0}' >&2) | ||
exec "$@" |
Uh oh!
There was an error while loading. Please reload this page.