What I currently have
- Website
- FreshRSS
- Zabbix
- Mastodon instance
- Lemmy instance
- Nextcloud
- Vaultwarden
- Jellyfin
- qBittorrent
- Synapse (Matrix homeserver)
- Matrix iMessage bridge
- Portainer
- Authentik
- 2 Minecraft Servers
- BreezeWiki
Things I don’t need
- The *arrs (I’m not pirating things enough for them to be needed)
- HomeAssistant
groceries got me interested, but I’m not able to get it working in docker. I am trying to run it behind caddy reverse proxy. All the containers are running, and it seems the couchdb database has been created but I get nothing when going to the url of the server and client. Just blank page.
Hmm, what do docker logs -f <container> tell? I made myself a compose file and use traefik. Not on my PC atm, but when I had problems getting it running, I made mistakes with the secrets. But that should show in the logs.
I get a lot of stuff… The first time i tried to make a docker-compose myself based on docs, and it made the groceries db. But I found out you need a lot of settings for couchdb, so I tried to run the default files, and I got an error on docker-compose.yml file. It wouldn’t run due to “restart: always” in the healthcheck of couchdb.
Now it seems it is complaining about JWT settings, even though I have base64-code in jwt.ini corresponding to the phrase in docker-compose.
groceries-server_1 | [07:30:22] ERROR: Cannot access database with encoded JWT key. Please check HMAC entry in jwt.ini. The hmac:_default value should be: c3F1ZWVnZWUtZmxhdG5lc3Mtb2NjdWx0aXN0LWNvbmZ1c2luZw==
Which corresponds to the jwt.ini
[jwt_keys]
hmac:_default = c3F1ZWVnZWUtZmxhdG5lc3Mtb2NjdWx0aXN0LWNvbmZ1c2luZw==
I got a bad feeling about the whole thing… I think I will stick to caldav + tasks.org for my shopping list, it has a much simpler setup…
Setup of the HMAC Key for the CouchDB was indeed the step I struggled with too. I think the first time I either made a mistake or used a broken Website to generate a Base64 value. The 2nd time my mistake was that I put in the Base64 value for the HMAC Key into the jwt.ini AND in the docker-compose.yml. But in the docker-compose.yml COUCHDB_HMAC_KEY, I had to put it unencoded and in the jwt.ini hmac:_default it has to be Base64 encoded. Maybe this is the thing you did wrong too?
I bet you are close!
On the other hand, if you are the only person using the shopping list and your current setup offers you what you need, maybe it is not worth it for you. For me it was (and updating when it runs is super easy, I promise!). The instant sync over all devices is great + it keeps working when I lose reception in a shop and syncs again instantly when I have internet again. But what makes Groceries for me are:
Oh, and adding a photo to an item is super useful if you are like me and need very close instructions what to get for your partner if you stand in front of a shelf with 100 different types of cheese which look all exactly the same to you… having a photo is sometimes a life saver for me :-)