Setup list for any environment (DB, CMS, PAGES) - Gapminder/dollar-street-framework GitHub Wiki

  1. Deployment manager:
  • MongoDB certified by Bitnami
  • Resources: 2CPU
  • Zone: europe-west4-a
  • Disk size: 50Gb
  • Standard Persistent Disk

*copy PASSWORD*

  1. Compute Engine - VM instances - Edit mongodb instance:
  • stop instance
  • add Network tag: mongodb
  • add your ssh key
  • fix internal IP
  • add ReadWrite acces to Storage API
  • start instance
  1. Compute Engine - VM instances - Add new instance * 2 (CMS + PAGES):
  • Resources: 1CPU
  • Zone: europe-west1-c
  • Disk size: 50Gb
  • Standard Persistent Disk
  • allow http/https
  • add Network tag: app
  • add your ssh pub key
  • generate ***.pem key beforehand (from existed ssh pub & private keys)
  1. VPC network - Firewall rules - Add for mongodb:
  • ports: tcp:22; tcp:27017
  • tags: mongodb
  1. VPC network - Firewall rules - Add for app:
  • ports: tcp:3000; tcp:80; tcp:8080; tcp:3001
  • tags: app
  1. VPC network - External IP addresses:
  • mongodb external - static
  • app external - static
  1. Mongobooster - Connection:
  • Type: Direct Connection
  • Server: mongodb://localhost:27017
  • SSH Address: EXTERNAL mongodb IP
  • SSH User name: your name from point 3 (last subpoint)
  • SSH Auth mode: Private Key
  • SSH Private Key: ***.pem
  • Authentication Mode: Basic
  • Authentication User name: root
  • Authentication Password: COPIED PASSWORD FROM POINT 1 (last subpoint)
  • Authentication Auth DB: admin
  1. Mongobooster - DB:
  • restore DB
  • create userDB with readWrite role to the restored DB
  1. Credentials ([email protected]:[path to your GitHub with credentials]):
  • update specific file with certain MODE & NODE & commit
  • npm run prebuild:client
  1. Setup backups