All Articles

Setup your local Parse.js server with Docker Compose

Even if you have already some good experience with docker and docker compose, like i do, you can sometimes have a hard time setup a new service. In this short article i want to give you a quick gist to setup your local Parse.js server with docker-compose.

Here is the docker-compose file to setup Parse.js with MongoDB and its dashboard:

version: '3'
services:
  mongo-parse-server:
      image: mongo
      ports:
          - 27017:27017
  parse-server:
      image: parseplatform/parse-server
      links:
          - mongo-parse-server
      depends_on:
          - mongo-parse-server
      environment:
          - PARSE_SERVER_APPLICATION_ID=APP_NAME
          - PARSE_SERVER_MASTER_KEY=SOME-GOOD-MASTER-KEY
          - PARSE_SERVER_DATABASE_URI=mongodb://mongo-parse-server:27017/parse
      ports:
          - 1337:1337
  parse-dashboard:
      image: parseplatform/parse-dashboard
      links:
          - parse-server
      depends_on:
          - parse-server
      environment:
          - PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1
          - PARSE_DASHBOARD_MASTER_KEY=SOME-GOOD-MASTER-KEY
          - PARSE_DASHBOARD_APP_ID=APP_NAME
          - PARSE_DASHBOARD_APP_NAME=LWP
          - PARSE_DASHBOARD_USER_ID=admin
          - PARSE_DASHBOARD_USER_PASSWORD=SOME_GOOD_PASSWORD
          - PARSE_DASHBOARD_SERVER_URL=http://localhost:1337/parse
      ports:
          - 4040:4040