Git push hosting for a small Django or FastAPI app

You have an app that runs on your laptop. You don't want to rent a server, sort out TLS and write a backup script. Add one workflow file to your repo and push. GitHub builds the image and we run it.

Sign up with an invite Pricing

Beta, invite only. Pharos is built and tested, but it hasn't run a customer's app on a real server yet. Signing up needs an invite code. To ask for one, email pharos@autera.com.au. We won't promise a date.

Early access: new apps are by invitation while we get ready. We will email you when you can deploy.

What your repo needs

  • Django: a manage.py and a package with wsgi.py. FastAPI: fastapi in your requirements and a line like app = FastAPI() in main.py or app.py.
  • A requirements.txt, or dependencies listed in pyproject.toml.
  • A Dockerfile is optional. If there isn't one, we write it for you (below). If you bring your own, it's used as it is. It can't fetch URLs with ADD, mount the host, or build on another customer's image.
  • Port 8000. The container runs as a non-root user with a read-only root, /tmp for scratch and /data for files that must survive a deploy.
  • A health path that answers 200 over plain HTTP. It's / by default. A small /healthz view that returns 200 is a good choice. Add your app's hostname to ALLOWED_HOSTS.
  • Settings come from environment variables you set in the dashboard. They're stored encrypted.

The deploy, step by step

This is the whole routine.

  1. Commit the workflow

    The app page shows a ready-made file. Put it at .github/workflows/pharos-deploy.yml.

  2. Push

    GitHub builds the image on its own runner and pushes it to our private registry. Your source stays on GitHub.

  3. We run it

    Back up, migrate, start, check the health path. A failed check puts the old version back.

Here is the deploy job from the file we generate (trimmed), and the Dockerfile we write for a Django app. The action address and commit are filled in by the dashboard.

name: Pharos deploy
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@<pinned commit>
- uses: <action repo>@<pinned commit>
with:
app: hello-django
server: https://app.pharos.autera.com.au

The real file also has an advisory scan job that runs first, plus a pinned checkout.

ARG PYTHON_IMAGE=python:3.12-slim
FROM ${PYTHON_IMAGE}
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 HOME=/tmp DATABASE_PATH=/data/db.sqlite3
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt gunicorn
RUN SECRET_KEY=build-only python manage.py collectstatic --noinput
RUN useradd --system --uid 10001 --no-create-home app && mkdir -p /data && chown app /data
USER 10001
EXPOSE 8000
CMD ["sh", "-c", "exec gunicorn hello.wsgi:application --bind 0.0.0.0:${PORT:-8000} --workers ${WEB_CONCURRENCY:-2}"]

Trimmed: the real file keeps a fallback message if collectstatic fails. For FastAPI the last line runs uvicorn instead.

The action repo isn't published yet, which is one more reason this is a beta.

What the Starter plan includes

Starter is A$27 a month, or A$259 a year if you pay yearly (about 20% off). Prices are in Australian dollars, GST included.

  • 1 app on the plan, always on
  • A deploy on every push, through the GitHub workflow file we generate for your repo
  • A backup before every deploy, your migrations run, and a failed deploy goes back to the last working version
  • SQLite with nightly backups, the last 3 kept. Postgres is an add-on at A$3 a month
  • Your own domain, with the DNS records shown for you. Extra domains on the same app are free.
  • Graphs, app logs and request logs. Raw readings are kept 7 days, hourly summaries 90 days
  • The app runs in a gVisor sandbox. Only HTTPS comes in
  • Ask us to restore a backup and we do it within one business day
  • Bring your own Dockerfile and we run it. Common project types get one written for them
  • Send email through a mail service with an HTTPS API
  • Email support, answered within 2 business days

You can find plain Python hosts that charge less. What you pay for here is the Docker and git workflow, a backup before each deploy, and the graphs. If you only want a web console and the lowest price, this isn't it. Full pricing

Questions

How do deploys work?

Create an app in the dashboard, then commit the GitHub workflow file it generates. On each push, GitHub builds your image and pushes it to our private registry. We back up your data, run your migrations, start the new version and check the health path. If the check fails, the previous version starts again and the backup goes back.

Can I use SQLite or Postgres?

SQLite is included. The file lives on the app's data volume at /data/db.sqlite3 and it's backed up every night. Postgres is an add-on at A$3 a month for each database, up to 2 GB. Switch it on from the app's Database page and redeploy. It starts empty. We don't move your SQLite data across, so dump it and load it yourself.

What does the health check hit?

The path set on the app, which is / unless support changes it. It must answer 200 over plain HTTP with your app's hostname in the Host header, so add that hostname to ALLOWED_HOSTS and don't redirect that path to HTTPS.

How do backups and restores work?

A backup is taken every night and again just before every deploy. We keep the last 3 nightly ones. A failed deploy restores the backup from just before it. For any other restore, ask support and we do it by hand within one business day. Backups are snapshots on the same platform, so keep your own copy of anything you can't lose.

What happens if I cancel?

Your code stays on GitHub. If you cancel, your apps stop and we keep your data for 30 days in case you change your mind, then delete it. Delete an app yourself and its data is erased the next time the host checks in. Export your data from the account page first.

Does Pharos read or build my code?

No. Your repository builds on GitHub's runner and sends us the finished image. We store and run that image.