Commit d45b6f54 authored by TonyFord's avatar TonyFord
Browse files

remove database port and use default port

parent ed0f44f1
#!/bin/bash
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g -e s/MYSQL_DATABASE_PORT/${MYSQL_DATABASE_PORT}/g > ./services/explorer/cce.conf
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g > ./services/explorer/cce.conf
docker-compose stop
docker-compose down
chmod +x ./services/faircoin/entrypoint.sh
......
......@@ -24,7 +24,7 @@ docker-compose up -d faircoin
export AUTOSTART=0
# start explorer service
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g -e s/MYSQL_DATABASE_PORT/${MYSQL_DATABASE_PORT}/g > ./services/explorer/cce.conf
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g > ./services/explorer/cce.conf
cat ${SERVER_CONF} | sed -e s/LH_PORT_explorer/${LH_PORT_explorer}/g > ./services/explorer/server.conf
docker-compose up -d explorer
sleep 20
......
#!/bin/bash
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g -e s/MYSQL_DATABASE_PORT/${MYSQL_DATABASE_PORT}/g > ./services/explorer/cce.conf
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g > ./services/explorer/cce.conf
cat ${SERVER_CONF} | sed -e s/LH_PORT_explorer/${LH_PORT_explorer}/g > ./services/explorer/server.conf
docker-compose stop
docker-compose up -d --remove-orphans
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment