Running an application efficiently on a new machine can be tricky. Every environment is different, often leading to compatibility issues. Your software might be tested just with certain versions of system software and supporting libraries. If a different version of Java or PHP is installed, you might get subtle bugs that would never show up in your testing environment.
Within your company's IT staff, you've perhaps been hearing some inside discussion asking "what is container hosting and management?" You'd probably like to have this question answered yourself since no doubt much of the talk about it relates to packing more computer workloads into one server.
The easiest way to stand up parse-server is through the ContainerShip marketplace. From a single instance IDE to a distributed database, our marketplace allows users to launch a stack of software onto any hosting provider they connect, with a single click. In this case, when you navigate to our marketplace, and select Parse Server, you will be prompted to review the settings for two applications: parse-server, and parse-mongodb.
This stack will launch one instance of parse-server, and a mongodb database onto the selected cluster, automatically configuring parse-server to utilize the mongodb that was launched.When configuring the stack, you can change the default amount of CPU and memory which is allocated to each container for the application. If you choose to run with thedefault resource specs, you will need a server with at least 4GB of RAM.
Once you have finished modifying the resource requirements, you will be prompted to enter two important environment variables required to configure your parse-server installation:
The placeholder text provides a short description of each required environment variable, but for further explanation, be sure to check out the official repository wiki. Once you’ve configured parse-server to your liking, you can launch both applications onto your cluster by clicking the “Launch” button. When you are redirected back to the cluster’s applications page, you should see your two new applications starting up.
Since the parse-server application automatically launches a loadbalancer on port 80, you will also see the containership-loadbalancer application starting. The creation of this loadbalancer makes your parse-server instance available on the automatically generated DNS address, which is found in the application’s configuration tab (it will look similar to: parse-server.50df23484220cf3db4b03eb30e119d9e.dns.cship.co). It will likely take you longer to read this section than it will to get your parse-server running, and thats a good thing :)
Option 2: From the Wizard
If you’d like to customize your installation of parse-server a bit more than our marketplace stack does out-of-the-box, creation through the wizard is for you! Once you reach the “Create Application” modal by clicking “From Wizard” on your cluster applications page, you can begin configuring your parse-server application. You will need to enter a few key pieces of information:
Application name (self-explanatory)
Docker image (we use containership/parse-server:2.0.7)
CPU and memory requirements.
While we have not thoroughly analyzed parse-server, we have assigned it 0.25 CPU shares and 512MB RAM respectively; adjust these values how you see fit.
Once you click “Create”, it’s time to add some environment variables! You will need a minimum of 3 environment variables to get parse-server to run successfully:
You may notice that the last environment listed here did not need to be configured in the marketplace installation guide. That’s because ContainerShip automatically set the PARSE_SERVER_DATABASE_URI environment variable to the url of the mongodb database launched along with parse-server.
Since you may be BYOM (bringing your own Mongo), feel free to set this URI to wherever your database is hosted. Check out MongoLab for a hosted solution, or the MongoDB marketplace item in ContainerShip Cloud. Once the required environment variables are set, you can optionally configure the remaining available variables found in the documentation. When you’re ready, go ahead and scale your parse-server application up to at least 1 container, and take a deep breath: you’ve replaced hosted Parse.
Hopefully you’ve found this guide helpful in getting a self-hosted Parse replacement set up. If you don’t already have a ContainerShip Cloud account, sign up to get started. If you found this article helpful, be sure to recommend it to others, and leave an feedback in the comments!
We’re happy to announce the initial availability of the ContainerShp Cloud Integration Marketplace with support for DigitalOcean! Marketplace makes launching the applications and tools you need dead simple, and let’s you easily scale vertically and horizontally later. We’ve provided 30 initial integrations ranging from databases, queues, and key value stores, to logging pipelines and blogging software. With just a few clicks you can launch a cluster of as many servers as you want, running the software of your choosing, and you’ll be emailed a link to access and manage the cluster. Read on to see how easy it is.
Every development and operations team has more or less the same goals. Write code that is clean, maintainable, and performant, deploy code as often as possible without downtime, and give users a fast and enjoyable experience that scales to meet demand.
Deploying continuously without downtime and scaling to meet demand is typically easier said than done, and the options for how to achieve these goals number in the hundreds if not more. They require building a hosting platform that is capable of a lot of things that system administrators used to do manually.
It has been a while since we made a post in our “on ContainerShip” series. Today we are excited to release our latest distributed database integration, with HazelCast. You might remember the previous installments we did in this series covering Aerospike, Crate.io, and Cassandra.
As we move along on our path to creating the simplest solution for running Docker in production, and giving developers an out-of-the-box continuous deployment and automation system for any cloud, we’ve added basic support for environments.