← All templates · Developer tools
Deploy Parse Server in one click
An open-source backend for apps: a database API, users, files, cloud code and push, with Parse Dashboard
A self-hosted alternative to Firebase.
What is Parse Server?
Parse Server is an open-source backend for mobile and web apps, often run in place of Firebase. Your app stores its objects through a REST API, or through a GraphQL API that Parse Server generates from your schema. Users sign up with a password, a third-party login or anonymously, and access control lists decide who can read or change each object. Cloud Code runs your own JavaScript as functions, triggers and jobs.
People self-host Parse Server to keep the backend and its data in their own hands: the code is open under the Apache 2.0 licence and runs anywhere Node.js does. It suits a solo developer or a small team who wants accounts, data and files without writing an API. The catch is outside services: email verification and password reset need an email adapter for a mail provider, and push notifications need your own APNs and FCM credentials.
Hosting Parse Server on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Parse Server. You fill in what it asks for and click Create project: Admin password.
- In a minute or two Parse Server is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Parse Server
Is Parse Server a good Firebase alternative?
For a typical app backend, yes. Besides data, users and Cloud Code, it has Live Query for realtime updates, file storage and push notifications, and Parse Dashboard to browse and edit your data.
Is Parse Server still maintained?
Yes. The Parse community develops it in the open on GitHub, ships new versions regularly and still releases updates for the previous major version.
Does Parse Server work with PostgreSQL?
Yes. It runs on MongoDB or on PostgreSQL with the PostGIS extension, version 2.2.0 or later, and its README lists the database versions each release is tested with.
Which SDKs does Parse Server have?
The Parse community publishes SDKs for iOS and other Apple platforms, including a Swift SDK, plus Android, JavaScript, Flutter and Dart, .NET, PHP and Arduino. Other clients can call the REST or GraphQL API directly.
How do I connect my app to Parse Server on Pethost?
Point the SDK at https://your-address/parse and give it the APP_ID from the project's .env file. Keep the MASTER_KEY from that file on servers only: it overrides every access control list.
How much memory and disk does Parse Server need?
Parse Server is moderate: about 500 MB with MongoDB and the dashboard; the disk holds your app's data and files. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Parse Server Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: proxy (nginx:1-alpine), parse-server (parseplatform/parse-server:9.10.4), dashboard (parseplatform/parse-dashboard:9.2.0), mongo (mongo:8.0).
Volumes, in the nightly backup: cloud, config, db, configdb.
services:
# One address for both: the API under /parse, the dashboard at the root, as the dashboard calls
# the API from the browser.
proxy:
image: nginx:1-alpine
restart: unless-stopped
configs:
- source: nginx
target: /etc/nginx/nginx.conf
parse-server:
image: parseplatform/parse-server:9.10.4
restart: unless-stopped
environment:
PARSE_SERVER_APPLICATION_ID: ${APP_ID}
PARSE_SERVER_MASTER_KEY: ${MASTER_KEY}
PARSE_SERVER_DATABASE_URI: mongodb://parse:${MONGO_PASSWORD}@mongo:27017/parse?authSource=admin
PARSE_SERVER_MOUNT_PATH: /parse
PARSE_SERVER_URL: http://localhost:1337/parse
PARSE_PUBLIC_SERVER_URL: ${URL}/parse
# The dashboard sends the master key from the person's browser, so it is let in from any
# address; it is shown only after the dashboard's sign-in.
PARSE_SERVER_MASTER_KEY_IPS: 0.0.0.0/0,::0
# The image's own volumes: Cloud Code (cloud/main.js) and the configuration.
volumes:
- cloud:/parse-server/cloud
- config:/parse-server/config
depends_on:
mongo:
condition: service_healthy
dashboard:
image: parseplatform/parse-dashboard:9.2.0
restart: unless-stopped
environment:
PARSE_DASHBOARD_SERVER_URL: ${URL}/parse
PARSE_DASHBOARD_APP_ID: ${APP_ID}
PARSE_DASHBOARD_MASTER_KEY: ${MASTER_KEY}
PARSE_DASHBOARD_APP_NAME: Parse
PARSE_DASHBOARD_USER_ID: admin
PARSE_DASHBOARD_USER_PASSWORD: ${ADMIN_PASSWORD}
PARSE_DASHBOARD_COOKIE_SESSION_SECRET: ${SESSION_SECRET}
# HTTPS ends at the machine's proxy; the dashboard signs in only over it.
PARSE_DASHBOARD_TRUST_PROXY: "1"
mongo:
image: mongo:8.0
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: parse
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- db:/data/db
- configdb:/data/configdb
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
configs:
nginx:
content: |
events {}
http {
client_max_body_size 50m;
proxy_http_version 1.1;
proxy_set_header Host $$host;
proxy_set_header X-Forwarded-For $$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $$http_x_forwarded_proto;
# Names are looked up per request, so the proxy starts before the other two answer.
resolver 127.0.0.11 valid=5s;
server {
listen 80;
set $$api parse-server:1337;
set $$dashboard dashboard:4040;
location /parse {
proxy_pass http://$$api;
}
location / {
proxy_pass http://$$dashboard;
}
}
}
volumes:
cloud:
config:
db:
configdb:
More in Developer tools
- GiteaGit hosting with pull requests and issues
- code-serverVS Code in the browser
- KrokiDiagrams from text: PlantUML, Mermaid, Graphviz and more
- CoderRemote development environments from Terraform templates, opened in VS Code, JetBrains, a browser or over SSH
- HasuraInstant GraphQL and REST APIs over a Postgres database, with permissions, events and a web console
- InsForgeA backend for apps that coding agents build: Postgres, auth, storage and edge functions