Try describing what you need:

MacroTrackr logo

MacroTrackr

★ 17

A self-hosted alternative to Macrofactor, Myfitnesspal, Cronometer

GNU Affero General Public License v3.0Open Source — No Paywall2 Containers — 2 containers — light hosting footprintDocker · Compose · SourceNo external DB2+ active committers (12mo)

About

MacroTrackr is a macro and meal tracking application aimed at people who want a privacy-respecting alternative to hosted nutrition trackers. It supports both a managed service and self-hosted...

Community Ratings

No ratings yet

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.

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.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Oct 2, 2026

Alternatives to MacroTrackr

NutriTrace logo

NutriTrace

386
NutriTrace is a self-hosted personal nutrition tracker for logging food, body stats, water, goals, and related health data with a browser PWA and Android app.
Health & FitnessRecipe ManagersSelf Hosting Solutions+2
Single Container
Details
Schautrack logo

Schautrack

47
Schautrack is a self-hostable open-source nutrition tracker for logging calories, macros, weight, goals, and progress sharing.
Health & FitnessSelf Hosting SolutionsPersonal Dashboards+3
2 ContainersFully FOSS
Details
openplate logo

openplate

70
openplate is an open-source, self-hosted food tracker with BYOK AI plate identification and encrypted device sync.
Health & FitnessSelf Hosting SolutionsArtificial Intelligence+1
Single ContainerFully FOSS
Details
SparkyFitness logo

SparkyFitness

6.8k
A self-hosted, privacy-first fitness tracking platform for logging nutrition, exercise, body metrics, and other health data.
Health & FitnessPersonal DashboardsSelf Hosting Solutions+1
3 ContainersSource Available
Details
wger logo

wger

7.3k
wger is a free workout and fitness manager with routines, tracking, nutrition logging, and a built-in exercise wiki.
Health & FitnessWikisPhoto Galleries+3
Details
PANTS logo

PANTS

133
PANTS is a self-hosted nutrition tracker and nutritional analysis tool for ingredients, recipes, diary entries, and dietary targets.
Health & FitnessRecipe ManagersSelf Hosting Solutions+1
Details
OpenNutriTracker logo

OpenNutriTracker

2.9k
OpenNutriTracker is an open-source calorie, macro, and micronutrient logging app for Android and iOS.
Health & FitnessRecipe ManagersFully FOSS
Fully FOSS
Details
Lyftr logo

Lyftr

370
Lyftr is a self-hosted, mobile-first workout and nutrition tracker that lets users log workouts, build programs, and track progress, weight, and calories.
Health & FitnessSelf Hosting SolutionsFully FOSS+1
2 ContainersFully FOSS
Details

Related Software

Mealie logo

Mealie

13.9k
Mealie is a self-hosted recipe manager, meal planner, and shopping list app with a REST API and Vue-based frontend.
Recipe ManagersPermissive LicenseTask Management+2
Single Container
Details
SportTracker logo

SportTracker

20
SportTracker is a self-hosted server for recording and analyzing workout data, with support for multiple users, workout logs, goals, charts, maps, and planned tours.
Health & FitnessMaps and GPSAnalytics Tools+1
2 Containers
Details
Vanilla Cookbook logo

Vanilla Cookbook

157
Vanilla Cookbook is a self-hosted recipe manager with recipe parsing, scaling, shopping lists, cooking logs, and optional AI-assisted features.
Recipe ManagersArtificial IntelligenceSelf Hosting Solutions+2
Details
Recipya logo

Recipya

413
A recipe manager web application for organizing, importing, digitizing, and sharing family recipes.
Recipe ManagersCopyleft LicenseSelf Hosting Solutions
Details
Workout Tracker logo

Workout Tracker

1.3k
A self-hosted workout tracking web application for personal or family use, focused on running and other GPX-based activities.
Health & FitnessMaps and GPSSelf Hosting Solutions+1
10 Containers
Details
Beaver Habit Tracker logo

Beaver Habit Tracker

1.9k
A self-hosted habit tracking app without goals.
Time TrackingPermissive LicenseHealth & Fitness+2
Freemium
Details
Wingfit logo

Wingfit

538
Wingfit is a minimalist self-hosted fitness app for planning workouts, tracking personal records, and using smartwatch data.
Health & FitnessCopyleft LicenseSelf Hosting Solutions+2
Single Container
Details
KitchenOwl logo

KitchenOwl

3.9k
A smart self-hosted grocery list and recipe manager.
Recipe ManagersCopyleft LicenseBudgeting and Finance+1
Details