Giter Club home page Giter Club logo

parse-platform-docker-stack's Introduction

On this repository you will find all the necessary files to run the parse server platform on your own machine using docker and docker-compose.

The stack is composed by the following services:

Before you start

You need to install the following packages:

The docker-compose services

In our [docker-compose.yaml] file we have all the services declarations, we have the following services:

  • mongo
  • parse_server
  • parse_dashboard
  • mongo_express

To run some docker-compose commands we need to know the name of the service. If do not know about what I'm talking about, just go to the next session and go on, when you see SERVICE_NAME you will remember of this section. If you read this! ;)

Running the parse server

Running all the stack.

# We need to run mongo before any other services.
docker-compose up -d mongo && sleep 5 && docker-compose up -d

See the logs of the service.

docker-compose logs -f SERVICE_NAME

Stop and remove an service

docker-compose rm -sf

Running a command inside the service container.

docker-compose exec SERVICE_NAME /bin/bash # or /bin/sh or any other command that you need.

Cloud code

One of the most coolest features of parse server, is the cloud code. To enable this feature you need to uncomment the following line on the docker-compose.yaml file:

# Just remove the # on the beginning of the line.
# PARSE_SERVER_CLOUD: ${PARSE_SERVER_CLOUD:-./cloud/main.js}

Where the parse server will looking for the cloud code

By default the parse server container will mount the host directory /tmp/cloud and will look for the file main.js inside this directory, but, the looking up procedure will only occours if you uncommend the line mentioned line above.

To set a new location for your custom cloud code, just change the following line on the docker-compose.yaml:

    volumes:
      - /tmp/cloud:/parse-server/cloud

Change only the /tmp/cloud otherwise the cloud code will not work properly. This feature will only work if you uncomment the line mentioned on the previous section.

Hot cloud code changing

This image is prepared for reload the parse server when the the cloud code is modified.

parse-platform-docker-stack's People

Contributors

eltonplima 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.