Getting started with Pharos

This is for a developer with a GitHub repository. Plan on about 15 minutes. Pharos has no uptime guarantee yet, so keep your own copy of your code and data.

1. What you get and what the limits are

  • Your plan includes one app (a Starter plan has one). It runs as one container with 512 MB of memory, half a vCPU and 2 GB of disk.
  • HTTPS only comes in. Outbound mail ports (25, 465, 587) are blocked, so send email through an HTTPS mail API.
  • Everything runs on one server. There is no shell console, no scheduled jobs and no free tier.
  • The database is SQLite in your app's /data folder (included), or a Postgres add-on at A$3 a month. More on that in section 9.

2. What your repository needs

You have two choices.

  • No Dockerfile: we write one. Go needs go.mod and a package main (in the root, or in exactly one folder below cmd/); the binary is built with Go 1.24 and runs on Alpine. Node needs a package.json with a start script and runs on Node 22. A static site needs an index.html at the root and no package.json. Django needs manage.py and a package with wsgi.py. FastAPI needs fastapi in requirements.txt and a line like app = FastAPI() in main.py or app.py. The generated image is Python 3.12 only. It installs requirements.txt plus gunicorn (Django) or uvicorn (FastAPI), runs as a non-root user and listens on port 8000.
  • Your own Dockerfile: it is used as written, after a policy check. It cannot fetch URLs during the build or build on another customer's image. Listen on port 8000 (or read PORT), run as a non-root user, and write only to /tmp and /data, because the rest of the container is read-only. Use this for any other Python version, or for anything we do not write a Dockerfile for: choose Other as the framework. Pharos runs any image your Dockerfile builds.

A working Django Dockerfile to start from:

FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 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 yourproject.wsgi:application --bind 0.0.0.0:8000 --workers 2"]

Replace yourproject with the folder that holds wsgi.py. Python versions in the first line are your choice only when you bring your own Dockerfile.

3. A health check URL

After each deploy we request one path over plain HTTP, with your app's address as the Host header. It must answer with a status below 400 within 30 seconds, or the old version stays live. The default path is /. A small dedicated path is safer. In Django:

# views.py
from django.http import HttpResponse

def healthz(request):
    return HttpResponse("ok", content_type="text/plain")

# urls.py
path("healthz", views.healthz),

Put /healthz in the Health check path box when you create the app, or later on its Settings page.

4. Settings to paste (Django)

These are the settings that stop most first deploys.

import os
from pathlib import Path

ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", "").split(",")
CSRF_TRUSTED_ORIGINS = [item for item in os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",") if item]
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECRET_KEY = os.environ["SECRET_KEY"]
DEBUG = os.environ.get("DEBUG", "") == "1"

# Put WhiteNoise second, right after SecurityMiddleware.
MIDDLEWARE = ["django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", "django.contrib.sessions.middleware.SessionMiddleware"]  # and the rest of yours
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "staticfiles"

DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": os.environ.get("DATABASE_PATH", "/data/db.sqlite3")}}

Add whitenoise to requirements.txt. We terminate HTTPS before your app, which is why SECURE_PROXY_SSL_HEADER matters: without it, logins and the admin fail with a CSRF error. For FastAPI there is nothing to paste: read PORT and DATABASE_PATH from the environment.

5. Create the app and connect GitHub

During the beta we create your first app for you, in your own account. If you can see New app in the sidebar, you can do it yourself. Either way you give a name, the GitHub address of the repository, the branch, and optionally a framework and a health path. Leave the framework on Detect and the first workflow run fills it in from your files. Private repositories need the GitHub connection on the New app page.

6. Add the workflow file and run it

Open your app, then the Automatic deploys tab. It shows a file, .github/workflows/pharos-deploy.yml, made for this app. Copy it exactly into that path in your repository and push. Then open the Actions tab on GitHub, pick the workflow and press Run workflow. A green run builds your image on GitHub and pushes it to our registry. We scan it, and then it goes live, either at once or when you press Put this version live, depending on the release mode you chose on that tab.

7. Environment variables

Go, Node, static and other apps need no Django settings. Read PORT (set for you, 8000 unless you change it), keep any data under /data (the generated image sets DATABASE_PATH to /data/db.sqlite3, and your own Dockerfile can do the same), and add your own variables on the Environment page. The rest of this section is for Django.

Open Environment and add at least SECRET_KEY (make one with python -c "import secrets; print(secrets.token_urlsafe(50))"), ALLOWED_HOSTS (your app address, for example yourapp.apps.pharos.autera.com.au, and your own domain later) and CSRF_TRUSTED_ORIGINS (the same with https:// in front). Values are encrypted and are never shown again. PORT is set for you. Changes apply on the next deploy: press Deploy again on the Environment page, or run the workflow again if nothing has run yet.

8. What a first deploy looks like, and what each failure means

The app page shows Queued, Building, Ready for the host, then Running. If it stops, read the red card.

What you seeUsual causeWhat to do
Bad Request (400) on a Running appYour address is not in ALLOWED_HOSTSFix the variable, deploy again
CSRF verification failedSECURE_PROXY_SSL_HEADER or CSRF_TRUSTED_ORIGINS is missingAdd both, deploy again
No CSS in the adminSTATIC_ROOT or WhiteNoise is missingFix, push, run the workflow again
The app started but did not answerWrong port, health path returns an error, or the app exited at startOpen App logs, the traceback is there
Your database migrations failedA migration raised an errorThe old version kept running and your data went back to the backup. Fix it, deploy again
Held by the scanThe image has a fixable critical problemUpdate the package, or email support

9. Database

SQLite is included. Set the database path to DATABASE_PATH (it is /data/db.sqlite3) and it survives deploys. Anything you write outside /data is gone on the next deploy. SQLite suits testing and small sites.

The Postgres add-on gives your app its own database, billed on top of your plan. It starts empty and nothing is moved for you: export from SQLite and load into Postgres, then deploy again. We set DATABASE_URL, so add a driver such as psycopg[binary] to your requirements.

10. Migrations, the admin and a superuser

Migrations run on every deploy, after a backup. If one fails, the old version keeps running and the backup goes back. The Create superuser button on the app page makes the first admin user.

11. Your own domain

Open Domain, enter a subdomain such as www.example.com and add the CNAME and TXT records it shows at your DNS provider. Press Check. The domain then waits for staff approval, which usually takes one business day, and gets a certificate after that. A bare domain such as example.com needs a redirect to the www name at your DNS provider. Custom domains need a paid plan or a pass.

12. Logs and graphs

App logs and request logs are kept for 7 days, and hourly usage summaries for 90 days. Graphs show CPU, memory, disk, database size, requests, response times and 5xx errors.

13. Backups and restore

SQLite data is backed up every night and the last 3 are kept. Restores are done by us, not by a button. Open Database and press Request a restore, or email pharos@autera.com.au with your app name. We restore within one business day. The restore replaces your current data with the newest backup, so anything saved since then is lost. Keep your own copy of anything you cannot lose.

14. Plans, cancelling and your data

Cancelling keeps your apps running to the end of the period you paid for, with no refund of the current period. We keep your data for 30 days after your apps stop. Download your export first from the Account page. The export has your apps, deploy history and variable names. It does not contain your database or files in /data.

15. Getting help

Email pharos@autera.com.au. We answer within 2 business days. Say your app name, the time of the problem, and the red message on the page. The status page at /status/ shows any known problem.