Better postgres and proxy readyness check by deleting _ready file first

This commit is contained in:
kexkey
2021-12-01 11:40:17 -05:00
parent 4d764a8dd0
commit a81cbb3e72
2 changed files with 4 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ services:
postgres:
image: postgres:<%= postgres_version %>
user: $USER
command: -c logging_collector=true -c log_directory=/cnlogs/
entrypoint: sh -c 'rm -f /container_monitor/postgres_ready ; docker-entrypoint.sh -c logging_collector=true -c log_directory=/cnlogs/'
# command: -c logging_collector=true -c log_directory=/cnlogs/
environment:
- "POSTGRES_USER=cyphernode"
- "POSTGRES_PASSWORD=<%= postgres_password %>"

View File

@@ -66,6 +66,8 @@ if [ "${returncode}" -ne "0" ]; then
exit ${returncode}
fi
rm -f /container_monitor/proxy_ready
chmod 0600 $DB_FILE
createCurlConfig ${WATCHER_BTC_NODE_RPC_CFG} ${WATCHER_BTC_NODE_RPC_USER}