diff options
Diffstat (limited to 'deployment/docker-entrypoint.sh')
-rwxr-xr-x | deployment/docker-entrypoint.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/deployment/docker-entrypoint.sh b/deployment/docker-entrypoint.sh index 62cf23b..bc442b4 100755 --- a/deployment/docker-entrypoint.sh +++ b/deployment/docker-entrypoint.sh @@ -9,8 +9,10 @@ function start_api_server { ./dkv } -if [ "$CONSUL_IP" = "localhost" ]; then - start_consul_server - sleep 5 +if [ "$DATASTORE_IP" = "localhost" ]; then + if [ "$DATASTORE" = "consul" ]; then + start_consul_server + sleep 5 + fi fi start_api_server |