diff --git a/README.md b/README.md index d7d778b..cca7b33 100644 --- a/README.md +++ b/README.md @@ -245,8 +245,10 @@ sh init-mongo-chat.sh $ID ### scale chat and ngrok and nginx +if ngrok required $NGROK=1 else $NGROK=0 + ``` -sh init-scale.sh stack +sh init-scale.sh stack $NGROK ``` ### create a gitea drone application @@ -263,9 +265,11 @@ export DRONE_GITEA_CLIENT_SECRET=ytsgdyXI_6zUrqwsI1wsssBAaUcsp27EyecT4nk5fA= ### redeploy +if ngrok required $NGROK=1 else $NGROK=0 + ``` docker stack deploy -c docker-compose.yml $SIGYL_STACK_NAME -sh init-scale.sh stack +sh init-scale.sh stack $NGROK ``` ### drone secrets diff --git a/docker-compose.yml b/docker-compose.yml index 0f350db..e847d50 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,12 +14,12 @@ services: - CERTBOT_EMAIL=${CERTBOT_EMAIL} - SERVER_NAME=${GIT_DOMAIN} - PROXY_PASS=http://gitea:3000/ - - BLOG_PROXY_PASS=http://ghost:2368 - - CHAT_PROXY_PASS=http://chat:3000 + - BLOG_PROXY_PASS=http://ghost:2368/ + - CHAT_PROXY_PASS=http://chat:3000/ - REMOTE_PROXY_PASS=http://guacamole:8080/guacamole/ - - DRONE_PROXY_PASS=http://drone-server:8080 - - REGISTRY_PROXY_PASS=http://registry-1:5000 - - PORTAINER_PROXY_PASS=http://portainer:8000 + - DRONE_PROXY_PASS=http://drone-server:8080/ + - REGISTRY_PROXY_PASS=http://registry-1:5000/ + - PORTAINER_PROXY_PASS=http://portainer:9000/ - PORTAINER_LOCATION=/portainer/ - GIT_LOCATION=/git/ - BLOG_LOCATION=/ diff --git a/init-scale.sh b/init-scale.sh index cf38b49..d8b5fa0 100644 --- a/init-scale.sh +++ b/init-scale.sh @@ -1,4 +1,4 @@ docker service scale $1_chat=1 -docker service scale $1_ngrok=1 +docker service scale $1_ngrok=$2 docker service scale $1_letsencrypt-drone=1 docker service scale $1_letsencrypt-git=1