Skip to content
Snippets Groups Projects
Commit 9f1d2aaa authored by roeland lanparty's avatar roeland lanparty
Browse files

staging (stg) docker-compose && cmds for run.sh

parent e488526a
No related branches found
No related tags found
No related merge requests found
version: "3"
services:
hive_condenser_stg:
build: .
image: hive/condenser:staging
container_name: hive_condenser_stg
environment:
VIRTUAL_HOST: staging-blog.hive.io
VIRTUAL_PORT: 8080
SDC_CLIENT_STEEMD_URL: https://api.hive.blog
SDC_SERVER_STEEMD_URL: https://api.hive.blog
SDC_DISABLE_SIGNUPS: 1
SDC_SITE_DOMAIN: staging-blog.hive.io
SDC_IMAGE_PROXY_PREFIX: https://images.hive.blog/
SDC_UPLOAD_IMAGE_URL: https://images.hive.blog
SDC_HELMET_CONNECTSRC: "'self' https://api.hive.blog https://staging.hive.blog https://images.hive.blog"
WALLET_URL: https://wallet.hive.blog
networks:
- condenser_reverse-proxy
restart: always
networks:
condenser_reverse-proxy:
external:
name: condenser_reverse-proxy
......@@ -10,6 +10,10 @@ function start {
docker-compose -f docker-compose.prod.yml up -d
;;
"stg")
docker-compose -f docker-compose.staging.yml up -d
;;
"dev")
docker-compose -f docker-compose.dev.yml up
;;
......@@ -31,6 +35,10 @@ function stop {
docker-compose -f docker-compose.prod.yml down
;;
"stg")
docker-compose -f docker-compose.staging.yml down
;;
"dev")
docker-compose -f docker-compose.dev.yml down
;;
......@@ -52,6 +60,10 @@ function logs {
docker-compose -f docker-compose.prod.yml logs --tail 30 --follow
;;
"stg")
docker-compose -f docker-compose.staging.yml logs --tail 30 --follow
;;
"*")
echo Unknown environment
exit 1
......@@ -70,6 +82,10 @@ function build {
docker-compose -f docker-compose.prod.yml build
;;
"stg")
docker-compose -f docker-compose.staging.yml build
;;
"*")
echo Unknown environment
exit 1
......@@ -124,7 +140,7 @@ while test $# -gt 0; do
;;
*)
echo "Usage: ./run.sh <start|stop|log> <prod|dev>"
echo "Usage: ./run.sh <start|stop|log> <prod|stg|dev>"
exit 1
;;
esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment