Files
hassio-addons/binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh
2023-10-03 20:02:29 +02:00

35 lines
704 B
Bash
Executable File

#!/usr/bin/env bashio
# shellcheck shell=bash
set -e
##############
# Export env #
##############
##################
# Starting redis #
##################
exec redis-server & bashio::log.info "Starting redis"
####################
# Starting mongodb #
####################
mkdir -p /data/db
exec mongod --bind_ip 127.0.0.1 & bashio::log.info "Starting mongod"
################
# Starting app #
################
cd /srv || true
npm start docker-entrypoint.sh & bashio::log.info "Starting binance bot"
#########################
# Starting Trading View #
#########################
python main.py & bashio::log.info "Starting trading view"
##################
# Starting nginx #
##################
nginx