diff --git a/containers/zammad-railsserver/docker-entrypoint.sh b/containers/zammad-railsserver/docker-entrypoint.sh index 7e84d61..db20f54 100644 --- a/containers/zammad-railsserver/docker-entrypoint.sh +++ b/containers/zammad-railsserver/docker-entrypoint.sh @@ -4,10 +4,12 @@ if [ "$1" = 'zammad-railsserver' ]; then # wait for postgres process coming up on zammad-postgresql until (echo > /dev/tcp/zammad-postgresql/5432) &> /dev/null; do - echo "zammad waiting for postgresql server to be ready..." + echo "zammad railsserver waiting for postgresql server to be ready..." sleep 5 done + echo "railsserver can access postgresql server now..." + cd ${ZAMMAD_DIR} bundle exec rake db:migrate &> /dev/null diff --git a/containers/zammad-scheduler/docker-entrypoint.sh b/containers/zammad-scheduler/docker-entrypoint.sh index 97d2238..a0bda5a 100644 --- a/containers/zammad-scheduler/docker-entrypoint.sh +++ b/containers/zammad-scheduler/docker-entrypoint.sh @@ -7,6 +7,8 @@ if [ "$1" = 'zammad-scheduler' ]; then sleep 2 done + echo "scheduler can access raillsserver now..." + # start scheduler cd ${ZAMMAD_DIR} bundle exec script/scheduler.rb run diff --git a/containers/zammad-websocket/docker-entrypoint.sh b/containers/zammad-websocket/docker-entrypoint.sh index 4cf5493..c5e82af 100644 --- a/containers/zammad-websocket/docker-entrypoint.sh +++ b/containers/zammad-websocket/docker-entrypoint.sh @@ -7,6 +7,8 @@ if [ "$1" = 'zammad-websocket' ]; then sleep 5 done + echo "websocket server can access raillsserver now..." + cd ${ZAMMAD_DIR} bundle exec script/websocket-server.rb -b 0.0.0.0 start fi