I hate money
Stack
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
Configuration
TypeComposelinuxihatemoney/ihatemoney:latest82303:8000DEBUG=FalseACTIVATE_ADMIN_DASHBOARD=FalseACTIVATE_DEMO_PROJECT=TrueADMIN_PASSWORD=ALLOW_PUBLIC_PROJECT_CREATION=TrueBABEL_DEFAULT_TIMEZONE=Europe/AthensGREENLET_TEST_CPP=noMAIL_DEFAULT_SENDER="Budget manager <admin@example.com>"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=0Standalone Install
Select an install method, to see config/commands for deploying I hate money
Install on Portainer
Import all app templates into your Portainer instance, for easy 1-click deploys
- Ensure both Docker and Portainer are installed, and up-to-date
- Log into your Portainer web UI
- Under Settings → App Templates, paste the below URL
- Head to Home → App Templates, and the list of apps will show up
- 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
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 <admin@example.com>"
- 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 -dMore install options in our documentation.
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
| Tag | Description |
|---|---|
| latest | Latest stable release |
| master | Built 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 documentationdocker-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-stoppeddocker 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:latestIhatemoney should now be available on http://localhost:8000.
Configuration
You can find more information about configuration options in the online documentation.| Environment | Default | |
|---|---|---|
| DEBUG | False | |
| ACTIVATEADMINDASHBOARD | False | |
| ACTIVATEDEMOPROJECT | True | |
| ADMINPASSWORD | ||
| ALLOWPUBLICPROJECTCREATION | True | |
| BABELDEFAULTTIMEZONE | UTC | |
| GREENLETTESTCPP | no | |
| MAILDEFAULTSENDER | ('Budget manager', 'budget@notmyidea.org') | |
| MAILPASSWORD | ||
| MAILPORT | 25 | |
| MAILSERVER | localhost | |
| MAILUSESSL | False | |
| MAILUSETLS | False | |
| MAILUSERNAME | ||
| SECRETKEY | tralala | |
| SESSIONCOOKIESECURE | True | |
| SQLALCHEMYDATABASEURI | sqlite:////database/ihatemoney.db | |
| SQLALCHEMYTRACKMODIFICATIONS | False | |
| ENABLECAPTCHA | False | |
| LEGALLINK | ||
| PORT | 8000 | |
| PUID | 0 | |
| PGID | 0 |
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:
137means killed, usually out of memory.126or127means 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:8000only 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 loginto 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.
- Bug within the app: Open an issue within ihatemoney's repo
- Template not working: Open an issue on xneo1/portainer_templates
- This website not working: Open an issue on lissy93/portainer-templates
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 toFalseACTIVATE_ADMIN_DASHBOARD, defaults toFalseACTIVATE_DEMO_PROJECT, defaults toTrueADMIN_PASSWORD, needs a valueALLOW_PUBLIC_PROJECT_CREATION, defaults toTrueBABEL_DEFAULT_TIMEZONE, defaults toEurope/AthensGREENLET_TEST_CPP, defaults tonoMAIL_DEFAULT_SENDER, defaults to"Budget manager <admin@example.com>"MAIL_PASSWORD, needs a valueMAIL_PORT, defaults to25MAIL_SERVER, defaults tolocalhostMAIL_USE_SSL, defaults toFalseMAIL_USE_TLS, defaults toFalseMAIL_USERNAME, needs a valueSECRET_KEY, defaults totralalaSESSION_COOKIE_SECURE, defaults toTrueSHOW_ADMIN_EMAIL, defaults toTrueSQLALCHEMY_DATABASE_URI, defaults tosqlite:////database/ihatemoney.dbSQLALCHEMY_TRACK_MODIFICATIONS, defaults toFalseENABLE_CAPTCHA, defaults toFalseLEGAL_LINK, needs a valuePORT, defaults to8000PUID, defaults to0PGID, defaults to0
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.