Public | Automated Build

Last pushed: a year ago
Short Description
A simple image of Parse server
Full Description

The image in this repo is not ready to run, it requires another Dockerfile to complete its use. An example of such Dockerfile:

FROM chatpongs/parse-server-docker:latest
ADD ./cloud /parse/cloud
WORKDIR /parse
ENV APP_ID <App ID>
ENV MASTER_KEY <Master Key>
ENV MONGO_URL <Mongo URL>
ENV PORT <Port>
EXPOSE <Port>            
CMD [ "npm", "start" ]

The folder structure should be
|- cloud
|-- main.js (Cloud Code)
|-- host.js (Express router that will be mounted to root)
|- Dockerfile


host.js must contain at least

var express = require('express');
var router = express.Router();
module.exports = router;

Or run with docker-compose (MongoDB attached)

version: '2'
services:
  web:
    build: .
    links:
      - db
    environment:
      APP_ID: <App ID>
      MASTER_KEY: <Master Key>
      MONGO_URL: mongodb://db:27017/dev
      PORT: <Int Port>
    expose:
      - "<Int Port>"
    ports:
      - "<Ext Port>:<Int Port>"
  db:
    image: mongo
Docker Pull Command
Owner
chatpongs
Source Repository

Comments (0)