SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
Habitica logo

Habitica

GPL-3.0/CC-BY-SA-3.0 Docker Ready ★ 14,345 Stars Active · 2026-11-24

Habit tracker app which treats your goals like a Role Playing Game. .

Category
Miscellaneous
Tech Stack / Runtime
Nodejs/Docker · JavaScript
Open-Source License
GPL-3.0/CC-BY-SA-3.0
GitHub Health
★ 14,345 · 4,454 forks
#habitica#javascript#node#nodejs#mongodb
Official docker-compose.yml

Quick Docker Compose Reference for Habitica

services:
  client:
    build:
      context: .
      dockerfile: ./Dockerfile-Dev
    command: ["npm", "run", "client:dev:docker"]
    depends_on:
      - server
    environment:
      - BASE_URL=http://server:3000
    networks:
      - habitica
    ports:
      - "5173:5173"
    volumes:
      - .:/usr/src/habitica
      - /usr/src/habitica/node_modules
      - /usr/src/habitica/website/client/node_modules
  server:
    build:
      context: .
      dockerfile: ./Dockerfile-Dev
    command: ["npm", "start"]
    depends_on:
      mongo:
        condition: service_healthy
    environment:
      - NODE_DB_URI=mongodb://mongo/habitrpg
    networks:
      - habitica
    ports:
      - "3000:3000"
    volumes:
      - .:/usr/src/habitica
      - /usr/src/habitica/node_modules
  mongo:
    image: "mongo:7.0"
    container_name: "habitica-mongodb"
    networks:
      - habitica
    hostname: "mongodb"
    ports:
      - "27017:27017"
    restart: "unless-stopped"
    volumes:
      - "./mongodb-data-docker:/data/db"
    entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs" ]
    healthcheck:
      test: echo "try { rs.status() } catch (err) { rs.initiate() }" | mongosh --port 27017 --quiet
      interval: 10s
      timeout: 30s
      start_period: 0s
      retries: 30

networks:
  habitica:
    driver: bridge

Habitica System Requirements & Self-Hosting Guide

Deploy Habitica (4 GB+ RAM) →

Recommended VPS

4 GB+ RAM

2 – 4 vCPU · $6 – $12/mo VPS

Deployment Method

Intermediate

Docker / Docker Compose (Recommended)

Commercial Use (GPL-3.0/CC-BY-SA-3.0)

Yes — free to self-host commercially for your team without per-seat fees.

Maintenance Status

Active

Last commit: 2026-11-24

Frequently Asked Questions about Habitica

Is Habitica free to self-host for commercial use?

Habitica is released under the GPL-3.0/CC-BY-SA-3.0 license. Yes — free to self-host commercially for your team without per-seat fees. It has 14,345 GitHub stars and was last updated on 2026-11-24.

What VPS specifications do I need to self-host Habitica?

Based on its Nodejs/Docker runtime and Miscellaneous workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).

Does Habitica support Docker deployment?

Yes — Habitica supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.

More Open-Source Miscellaneous

View all →
★ 72.6k

Framework for easily creating beautiful presentations using HTML. , Source Code.

MIT Javascript
Details →
★ 62.9k Docker

Web-based design and prototyping platform meant for cross-domain teams. .

Replaces: Figma Miro
MPL-2.0 Docker
Details →
★ 46.2k Docker

One-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable and portable. , Source Code.

MIT Docker/Nodejs
Details →
★ 36.6k

Perform all manner of operations within a web browser such as AES, DES and Blowfish encryption and decryption, creating hexdumps, calculating hashes, and much more. .

Apache-2.0 Javascript
Details →
★ 24.5k Docker

Web AI firewall utility which protects upstream resources from scraper bots. .

MIT Docker/deb/Go
Details →