MacroTrackr
★ 17A self-hosted alternative to Macrofactor, Myfitnesspal, Cronometer
About
Community Ratings
No ratings yetNew this week
Read recap →Features
- meal logging
- macro goals
- weight trend tracking
- history import
- local authentication
- managed hosting
- self-hosting
- 1-click homelab deployments
- backup and restore
- pricing/free calculators
Details
- Last Updated
- Nov 7, 2026
- Created
- Feb 1, 2025
- Install Methods
- dockerdocker-composesource
- Requirements
- BunSQLitenginx proxying
- Default Port
- 5173frontend web UI
- Authentication
- local
- API
- REST
- Backup & Export
- file-backup
- Privacy & Independence
- Cloud: Optional
- User Model
- Multi-User
- Deployment
Deployment: Docker Compose ✓2 Containers — light hosting footprintRuns as 2 containers
Run MacroTrackr yourself
Pick how much you want to manage.
netcupBest match
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
Hetzner
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
DigitalOcean
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
1 more way to host
Some links earn us a commission. netcup pays us one and is our preferred VPS host.
Is this your project? Sponsor a listing
Run MacroTrackr with Docker Compose
Compose file from the MacroTrackr project repository.
2 services
no resource limits declared
needs persistent storage (2 volumes)
docker-compose.yml · @ 3a75789 · scanned Nov 3, 2026
services:
backend:
# Docker Hub: the GHCR packages are not public, so an anonymous pull fails.
image: ${BACKEND_IMAGE:-docker.io/arogan178/macrotrackr-backend:latest}
restart: unless-stopped
env_file:
- path: backend/.env
required: false
volumes:
- ./data:/data
environment:
DATABASE_PATH: /data/macrotrackr.db
APP_MODE: ${APP_MODE:-self-hosted}
AUTH_MODE: ${AUTH_MODE:-local}
BILLING_MODE: ${BILLING_MODE:-disabled}
ANALYTICS_MODE: ${ANALYTICS_MODE:-disabled}
EMAIL_MODE: ${EMAIL_MODE:-disabled}
APP_URL: ${APP_URL:-http://localhost:5173}
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:5173}
# The bundled nginx overwrites X-Real-IP, so per-client rate limiting can
# trust it. Set to false if the backend is ever exposed without a proxy.
TRUST_PROXY: ${TRUST_PROXY:-true}
# Not published to the host: the frontend proxies /api/ to this service on
# the compose network. Publishing it would let clients reach the backend
# directly and forge the proxy headers that TRUST_PROXY tells it to honour.
expose:
- "3000"
frontend:
image: ${FRONTEND_IMAGE:-docker.io/arogan178/macrotrackr-frontend:latest}
restart: unless-stopped
depends_on:
- backend
volumes:
- ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "5173:80"
This file may be out of date. Check the MacroTrackr documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.