mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-31 10:14:35 +01:00
Delete _ready files before starting CN
This commit is contained in:
@@ -10,7 +10,6 @@ services:
|
||||
image: postgres:<%= postgres_version %>
|
||||
user: $USER
|
||||
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 %>"
|
||||
@@ -25,7 +24,7 @@ services:
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
stop_grace_period: 30s
|
||||
stop_grace_period: 90s
|
||||
networks:
|
||||
- cyphernodenet
|
||||
<% if ( docker_mode === 'swarm' ) { %>
|
||||
|
||||
@@ -60,6 +60,9 @@ export USER=$(id -u <%= default_username %>):$(id -g <%= default_username %>)
|
||||
|
||||
current_path="$(cd "$(dirname "$0")" >/dev/null && pwd)"
|
||||
|
||||
# Let's make sure the container readyness files are deleted before starting the stack
|
||||
docker run --rm -v cyphernode_container_monitor:/container_monitor alpine sh -c 'rm -f /container_monitor/*_ready'
|
||||
|
||||
<% if (docker_mode == 'swarm') { %>
|
||||
docker stack deploy -c $current_path/docker-compose.yaml cyphernode
|
||||
<% } else if(docker_mode == 'compose') { %>
|
||||
|
||||
Reference in New Issue
Block a user