Documentation

docs
cli
docker services

Docker & Services

Docker & Services

Mithril includes infrastructure/docker-compose.services.yml for local development dependencies.

Quick Start#

# Start PostgreSQL
make dc-up-postgres

# Run migrations
mithril migrate-up

Per-Service Commands#

Pattern: make dc-<action>-<service>

ActionExample
upmake dc-up-postgres
stopmake dc-stop-postgres
startmake dc-start-postgres
restartmake dc-restart-postgres
logsmake dc-logs-postgres
install (pull)make dc-install-postgres
shellmake dc-shell-postgres

Generic form:

make dc CMD=up SVC=postgres
make dc CMD=logs SVC=redis

Available Services#

ServiceHost portNotes
postgres5432DB mithril_rev, trust auth
pgadmin5051Web UI (5050 reserved for embedded DBMS)
adminer8080Generic DB UI
redis6379Cache / queues (planned integration)
rabbitmq5672Message broker (planned)
kafka9092Event streaming (planned)

Connection String#

DATABASE_URL=postgres://postgres@localhost:5432/mithril_rev?sslmode=disable

Application Docker Image#

Build and run the app container:

make docker-build
make run-docker

See Docker deployment for production guidance.

Compose File Location#

infrastructure/docker-compose.services.yml

The app itself runs on the host (not in compose) and connects to services via localhost.

Next Steps#