#!/bin/bash set -e tm=`date +%Y%m%d-%H%M%S` echo "=====================================================" echo "Starting mysql/redis/rabbitmq/fastdfs[tracker|storage]." echo "Starting <${tm}>." echo "=====================================================" echo "Please ensure the config files right." echo "=====================================================" is_empty_dir(){ return `ls -A $1|wc -w` } # ./data/es if is_empty_dir ./data/es/ then chmod 777 ./data/es fi docker-compose -f docker-compose-data.yml -p ibps3-data up -d