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>
| Action | Example |
|---|---|
| up | make dc-up-postgres |
| stop | make dc-stop-postgres |
| start | make dc-start-postgres |
| restart | make dc-restart-postgres |
| logs | make dc-logs-postgres |
| install (pull) | make dc-install-postgres |
| shell | make dc-shell-postgres |
Generic form:
make dc CMD=up SVC=postgres
make dc CMD=logs SVC=redis
Available Services#
| Service | Host port | Notes |
|---|---|---|
| postgres | 5432 | DB mithril_rev, trust auth |
| pgadmin | 5051 | Web UI (5050 reserved for embedded DBMS) |
| adminer | 8080 | Generic DB UI |
| redis | 6379 | Cache / queues (planned integration) |
| rabbitmq | 5672 | Message broker (planned) |
| kafka | 9092 | Event 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.