Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 3.4 KB

docker.md

File metadata and controls

80 lines (57 loc) · 3.4 KB

Self-hosting with Docker

The quickest way to run ReproDrop: one application container and Postgres, no paid services.

git clone https://github.com/patchyard/reprodrop.git
cd reprodrop
cp .env.example .env
docker compose up --build

Open http://localhost:3000 and create an account. That's it.

What runs

Service Image Notes
web built from infra/docker/Dockerfile API + dashboard on port 3000, runs as a non-root user, applies migrations on start, health check on /api/health
db postgres:17-alpine Bound to 127.0.0.1:54329 on the host for local tools; not reachable from other machines

Volumes:

Volume Contents
db-data The Postgres database
app-data /data/secrets.json (generated APP_SECRET and ENCRYPTION_KEY) and /data/uploads (screenshots)

Back up both volumes. Without secrets.json (or your own ENCRYPTION_KEY), stored Jira credentials can't be decrypted and admins will need to reconnect Jira.

Common settings

Edit .env, then docker compose up -d again:

  • APP_URL: the URL people use to reach ReproDrop. Must match exactly, including https://.
  • WEB_PORT: host port (default 3000).
  • ALLOW_SIGNUP=false once your team has accounts.
  • JIRA_CLIENT_ID / JIRA_CLIENT_SECRET: real Jira (see ../integrations/jira.md). Without them, Jira runs in mock mode.
  • SEED_DEMO_DATA=true: sample data with demo@reprodrop.dev / reprodrop-demo. Local use only.

All variables: ../setup/configuration.md.

Use a published image

From v0.1.2, every release publishes ghcr.io/patchyard/reprodrop:<version> (amd64 and arm64). v0.1.1 was published before the project moved to the Patchyard organization, so use v0.1.2 or later. To run it instead of building locally:

echo "REPRODROP_IMAGE=ghcr.io/patchyard/reprodrop:0.1.2" >> .env
docker compose pull web
docker compose up -d

Pin an exact version in production and upgrade deliberately; :latest follows the newest release.

Operations

docker compose ps                          # status and health
docker compose logs -f web                 # logs (JSON)
docker compose exec web node dist/seed.js  # load demo data on demand
docker compose pull db && docker compose up -d --build   # upgrade

Migrations run automatically when the new container starts. Take a database backup before upgrading:

docker compose exec db pg_dump -U reprodrop reprodrop > reprodrop-$(date +%F).sql

Health checks

  • GET /api/health/live: the process is up.
  • GET /api/health: database and storage are reachable (HTTP 503 if not). Used by the container health check.

For a production deployment (HTTPS, a managed database, object storage, backups) read production.md.