Docker Guide

This repo ships both a local development compose file and a production-oriented compose file.

Local Development Compose

Start everything:

docker-compose up

Run only data services in the background:

docker compose -f infrastructure/docker/docker-compose.yml up -d postgres redis

The local compose file currently starts:

  • postgres on 5432

  • redis on 6379

  • api on 8000

  • frontend on 3000

Useful Commands

docker-compose ps
docker-compose logs -f api
docker-compose logs -f frontend
docker-compose restart api
docker-compose build api
docker-compose down
docker-compose down -v

Validate the Local Stack

Once the containers are up:

Production Compose

The production file in this repo is:

Bring it up with:

Inspect it with:

Environment Variables

Typical values for local container work:

Testing Notes

  • The api image installs requirements.txt, not the root dev extras, so pytest is not available in that container by default.

  • package.json has no test script today.

  • Playwright exists, but its current config targets https://mutx.dev, not the local compose stack.

For verification, prefer host commands such as:

Last updated