Portainer Templates logo

Portainer Templates

I hate money

Stack

Finance

I hate money is a web application made to ease shared budget management. It keeps track of who bought what, when, and for whom; and helps to settle the bills.

Image details

Pulls: 349k
Architecture: amd64, arm64, arm/v7
Image size: 60 MB
Latest: 7.2.1
User: ihatemoney
Created: Oct 11, 2021
Updated: 8 days ago
Status: active

Configuration

Type
Compose
Platform
linux
Image
ihatemoney/ihatemoney:latest
Ports
82303:8000
Env vars
DEBUG=FalseACTIVATE_ADMIN_DASHBOARD=FalseACTIVATE_DEMO_PROJECT=TrueADMIN_PASSWORD=ALLOW_PUBLIC_PROJECT_CREATION=TrueBABEL_DEFAULT_TIMEZONE=Europe/AthensGREENLET_TEST_CPP=noMAIL_DEFAULT_SENDER="Budget manager <[email protected]>"MAIL_PASSWORD=MAIL_PORT=25MAIL_SERVER=localhostMAIL_USE_SSL=FalseMAIL_USE_TLS=FalseMAIL_USERNAME=SECRET_KEY=tralalaSESSION_COOKIE_SECURE=TrueSHOW_ADMIN_EMAIL=TrueSQLALCHEMY_DATABASE_URI=sqlite:////database/ihatemoney.dbSQLALCHEMY_TRACK_MODIFICATIONS=FalseENABLE_CAPTCHA=FalseLEGAL_LINK=PORT=8000PUID=0PGID=0
Source

Template by xneo1·Source

Standalone Install

Select an install method, to see config/commands for deploying I hate money

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select I hate money, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo
Original stackfile

The compose file this template deploys, straight from its repo:

services:
  ihatemoney:
    image: ihatemoney/ihatemoney:latest
    environment:
      - DEBUG=False
      - ACTIVATE_ADMIN_DASHBOARD=False
      - ACTIVATE_DEMO_PROJECT=True
      - ADMIN_PASSWORD=
      - ALLOW_PUBLIC_PROJECT_CREATION=True
      - BABEL_DEFAULT_TIMEZONE=Europe/Athens
      - GREENLET_TEST_CPP=no
      - MAIL_DEFAULT_SENDER="Budget manager <[email protected]>"
      - MAIL_PASSWORD=
      - MAIL_PORT=25
      - MAIL_SERVER=localhost
      - MAIL_USE_SSL=False
      - MAIL_USE_TLS=False
      - MAIL_USERNAME=
      - SECRET_KEY=tralala
      - SESSION_COOKIE_SECURE=True
      - SHOW_ADMIN_EMAIL=True
      - SQLALCHEMY_DATABASE_URI=sqlite:////database/ihatemoney.db
      - SQLALCHEMY_TRACK_MODIFICATIONS=False
      - ENABLE_CAPTCHA=False
      - LEGAL_LINK=
      - PORT=8000
      - PUID=0
      - PGID=0
    ports:
      - "82303:8000"

Or deploy it directly from the source:

git clone https://github.com/xneo1/portainer_templates
cd portainer_templates
docker compose -f Template/Stack/ihatemoney.yml up -d

More install options in our documentation.

GitHub Actions Status Translation status from Weblate Donate Docker image
I hate money is a web application made to ease shared budget management. It keeps track of who bought what, when, and for whom; and helps to settle the bills.
(to get updates when needed).
The code is distributed under a BSD beerware derivative: if you meet the people in person and you want to pay them a craft beer, you are highly encouraged to do so.

Version Tags

TagDescription
latestLatest stable release
masterBuilt against git master branch, considered unstable.

Usage

Here are some example snippets to help you get started creating a container. More information in the online documentation

docker-compose

---
version: "3.9"

services:
  ihatemoney:
    image: ihatemoney/ihatemoney:latest
    container_name: ihatemoney
    environment:
      - PORT=8000
      - PUID=0
      - PGID=0
    volumes:
      - </path/to/database>:/database
    ports:
      - 8000:8000
    restart: unless-stopped

docker cli

docker run -d \
  --name=ihatemoney \
  -e PORT=8000 \
  -e PUID=0 \
  -e PGID=0 \
  -p 8000:8000\
  -v </path/to/database>:/database \
  --restart unless-stopped \
  ihatemoney/ihatemoney:latest

Ihatemoney should now be available on http://localhost:8000.

Configuration

You can find more information about configuration options in the online documentation.
EnvironmentDefault
DEBUGFalse
ACTIVATEADMINDASHBOARDFalse
ACTIVATEDEMOPROJECTTrue
ADMINPASSWORD
ALLOWPUBLICPROJECTCREATIONTrue
BABELDEFAULTTIMEZONEUTC
GREENLETTESTCPPno
MAILDEFAULTSENDER('Budget manager', '[email protected]')
MAILPASSWORD
MAILPORT25
MAILSERVERlocalhost
MAILUSESSLFalse
MAILUSETLSFalse
MAILUSERNAME
SECRETKEYtralala
SESSIONCOOKIESECURETrue
SQLALCHEMYDATABASEURIsqlite:////database/ihatemoney.db
SQLALCHEMYTRACKMODIFICATIONSFalse
ENABLECAPTCHAFalse
LEGALLINK
PORT8000
PUID0
PGID0

Serve I hate money on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.

Proxying i-hate-money.example.com to http://ihatemoney:8000

Add this to your Caddyfile

i-hate-money.example.com {
	reverse_proxy http://ihatemoney:8000
}

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs <container>
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Port already in use

If deployment fails with "Bind for 0.0.0.0:82303 failed: port is already allocated", something else on your server is using that port.

  • Find what's using it: sudo ss -tlnp | grep :82303
  • Stop the other service, or pick a different host port. In 82303:8000 only the left number is yours to change, the right one belongs to the app.

Running but the page won't load

The container is up but nothing appears in your browser.

  • Use your server's real IP: http://your-server-ip:82303. The 0.0.0.0 link Portainer shows isn't a real address.
  • Give it a minute after first deploy, ihatemoney can take a while to initialise.
  • Make sure your firewall allows the port, e.g. sudo ufw allow 82303

Image won't pull

Test the pull directly on the host: docker pull ihatemoney/ihatemoney:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64, arm/v7
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Required settings are blank

ADMIN_PASSWORD, MAIL_PASSWORD, MAIL_USERNAME, LEGAL_LINK have no default value, and ihatemoney may crash or misbehave if left empty.

  • Fill them in on the deploy screen before hitting deploy.

Stack won't deploy

Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.

  • YAML only accepts spaces for indentation, a single tab breaks the whole file.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A Compose stack

I hate money is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.

The app image

An image is the app packed up ready to go, everything I hate money needs bundled into one download. This template pulls ihatemoney/ihatemoney:latest, which Docker fetches once (about 60 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. I hate money's comes from Docker Hub, published by ihatemoney.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Newest right now is 7.2.1. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64, arm/v7, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Ports

A port is the door the app answers on. A mapping like 82303:8000 means it's reachable on port 82303 of your server, where the left number is yours to change and the right one belongs to the app. Once it's running, open http://your-server-ip:82303 in a browser. It opens:

  • 82303:8000, likely the web interface

No stored data

This template doesn't mount any storage, so whatever I hate money writes stays inside the container and is wiped if it's recreated or updated. That's fine for something stateless, but add a volume before trusting it with anything you want to keep.

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. I hate money takes 24 of them, and 4 need a value before it'll start properly:

  • DEBUG, defaults to False
  • ACTIVATE_ADMIN_DASHBOARD, defaults to False
  • ACTIVATE_DEMO_PROJECT, defaults to True
  • ADMIN_PASSWORD, needs a value
  • ALLOW_PUBLIC_PROJECT_CREATION, defaults to True
  • BABEL_DEFAULT_TIMEZONE, defaults to Europe/Athens
  • GREENLET_TEST_CPP, defaults to no
  • MAIL_DEFAULT_SENDER, defaults to "Budget manager <[email protected]>"
  • MAIL_PASSWORD, needs a value
  • MAIL_PORT, defaults to 25
  • MAIL_SERVER, defaults to localhost
  • MAIL_USE_SSL, defaults to False
  • MAIL_USE_TLS, defaults to False
  • MAIL_USERNAME, needs a value
  • SECRET_KEY, defaults to tralala
  • SESSION_COOKIE_SECURE, defaults to True
  • SHOW_ADMIN_EMAIL, defaults to True
  • SQLALCHEMY_DATABASE_URI, defaults to sqlite:////database/ihatemoney.db
  • SQLALCHEMY_TRACK_MODIFICATIONS, defaults to False
  • ENABLE_CAPTCHA, defaults to False
  • LEGAL_LINK, needs a value
  • PORT, defaults to 8000
  • PUID, defaults to 0
  • PGID, defaults to 0

Users and permissions

The PUID and PGID settings tell it which user and group to act as on your host. Point them at your own account (find yours with id $USER) so the files it writes into your mounted folders come out owned by you rather than root.

Networking

Nothing custom is set, so I hate money sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container ihatemoney. That's what you'll spot in the containers list and use in commands like docker logs ihatemoney.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set I hate money up. Add the template list to Portainer once, then deploying I hate money is a click rather than a wall of config.