Deployment
Overview¶
SpeedPy is designed for Docker-based deployment. The recommended platform is Appliku, which deploys on your own servers for significant cost savings.
Docker¶
Dockerfile¶
SpeedPy uses a python:3.14.8-trixie base image with Node.js 24 LTS installed via NVM and uv for dependency management:
FROM python:3.14.8-trixie
# Node.js installed via NVM
ENV NODE_VERSION=24.22.1
# uv for fast dependency management (pinned for reproducible builds)
COPY --from=ghcr.io/astral-sh/uv:0.13.4 /uv /uvx /usr/local/bin/
# Python dependencies
COPY pyproject.toml uv.lock /code/
RUN UV_PROJECT_ENVIRONMENT=/usr/local uv sync --frozen
COPY . /code/
Docker Compose Services¶
| Service | Purpose |
|---|---|
web |
Django dev server on WEB_PORT from .env (default 9000). Builds the image; celery and celery-beat reuse it |
db |
PostgreSQL 18 database (postgres:18) |
redis |
Redis 8 for Celery and caching (redis:8) |
celery |
Celery worker |
celery-beat |
Celery Beat scheduler (redbeat) |
media |
Nginx for serving media files |
Running in Development¶
# Start all services
docker compose up -d
# Start just the web server
docker compose up -d web
# View logs
docker compose logs -f web
Gunicorn¶
For production, use Gunicorn instead of Django's development server. SpeedPy includes gunicorn in pyproject.toml.
Release Script¶
The release.sh script runs during deployment to apply migrations and ensure a superuser exists:
This script is typically configured as a release command in your deployment platform.
Appliku Deployment¶
Appliku is the recommended deployment platform. It handles:
- Docker-based deployments on your own servers
- Automatic SSL certificates
- Process management (web, worker, beat)
- Environment variable management
The appliku.yml build image is set to python-3.14-uv-node-25.6, which provides Python 3.14, uv, and Node.js 25.6 for the build environment. Appliku has no Node 24 image; Node is only used to build the Tailwind CSS, so the version difference from the Dockerfile has no effect.
Follow Appliku's documentation to connect your repository and configure the deployment.
Production Checklist¶
Before deploying to production, strip demo content from your fork. See Production Readiness for the full guide, then ensure you:
- Set
DEBUG=False - Set a strong
SECRET_KEY - Set a unique
SALT_KEY - Configure
ALLOWED_HOSTS - Set up
DATABASE_URL(PostgreSQL) - Set up
REDIS_URL - Configure
EMAIL_URLwith a real email provider - Set
DEFAULT_FROM_EMAIL - Change
ADMIN_URLfrom the default - Set reCAPTCHA keys
- Run
collectstatic - Build Tailwind CSS