Giter Club home page Giter Club logo

monk-papercups's Introduction

Papercups & Monk

This repository contains Monk.io template to deploy Papercups system either locally or on cloud of your choice (AWS, GCP, Azure, Digital Ocean).

Local Deployment

This template is available directly from Monkhub.io therefore if you want a quick deploy simply run below command after launching monkd:

➜  monk-papercups git:(main) ✗ monk login

➜  monk-papercups git:(main) ✗ monk run papercups/stack

✔ Started papercups/stack

✨ All done!

🔩 papercups/stack
 └─🧊 local
    ├─📦 templates-local-papercups-papercups-papercups
    │  ├─🧩 papercups/papercups:latest
    │  ├─🔌 open localhost:80 -> 80
    │  ├─🔌 open localhost:3000 -> 3000
    │  └─🔌 open localhost:4000 -> 4000
    └─📦 templates-local-papercups-postgres-postgres
       ├─🧩 postgres:12
       ├─💾 /Users/toymachine/.monk/volumes/db_data -> /var/lib/postgresql/data
       └─🔌 open localhost:5432 (0.0.0.0:5432) -> 5432

Cloud Deployment

To deploy the above system to your cloud provider, create a new Monk cluster and provision your instances.

➜  monk-papercups git:(main) ✗ monk cluster new
? New cluster name papercups-deployment
✔ Cluster created
Your cluster has been created successfully.

➜  monk-papercups git:(main) ✗ monk cluster provider add
? Cloud provider gcp
? GOOGLE_APPLICATION_CREDENTIALS is set. Try load it? Yes
✔ Provider added successfully

➜  monk-papercups git:(main) ✗ monk cluster grow -p gcp
? Name for the new instance my-instance
? Tags (split by whitespace) papercups
? Instance region (gcp) europe-west2
? Instance zone (gcp) europe-west2-c
? Instance type (gcp) n2-standard-2
? Disk Size (GBs) 10
? Number of instances (or press ENTER to use default = 1) 2
✔ Creating a new instance(s) on gcp...
✔ Syncing nodes DONE
✔ Cluster grown successfully

Once cluster is ready execute the same command as for local and select your cluster (the option will appear automatically).

➜  monk-papercups git:(main) ✗ monk run papercups/stack
? Select tag to run on: papercups

Logs & Shell

➜  monk logs -l 1000 -f papercups/papercups

➜  monk shell papercups/papercups

monk-papercups's People

Contributors

cuteanonymouspanda avatar maciejry avatar nooga avatar

Watchers

 avatar Burakhan Ozyol avatar Artem Teleshev avatar  avatar Sergey Nelepa avatar Ivan Manachyn avatar v.nyzhehorodov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.