---
title: mealie Stack
description: Mealie recipe manager in NetGrimoire
published: true
date: 2026-04-16T03:27:57.689Z
tags: docker,swarm,mealie,netgrimoire
editor: markdown
dateCreated: 2026-04-16T03:27:57.689Z
---

# mealie

## Overview
The mealie stack is a Docker Swarm service that provides a recipe manager for the NetGrimoire environment. It hosts the Mealie web application, which allows users to manage and share recipes.

## Architecture
| Service | Image | Port | Role |
|---------|-------|------|------|
- **Host:** docker4
- **Network:** netgrimoire
- **Exposed via:** recipe.netgrimoire.com
- **Homepage group:** PNCHarris Apps

---

## Build & Configuration

### Prerequisites
This stack requires a Docker Swarm manager and worker nodes, as well as the mealie-stack.yml file.

### Volume Setup
```bash
mkdir -p /DockerVol/mealie
chown -R 1001:1001 /DockerVol/mealie
```

### Environment Variables
```bash
# generate: openssl rand -hex 32
PUID=1001
PGID=998
TZ=America/Chicago
MAX_WORKERS=1
WEB_CONCURRENCY=1
BASE_URL=https://recipe.netgrimoire.com
ALLOW_PASSWORD_LOGIN=false
ALLOW_SIGNUP=false
OIDC_AUTH_ENABLED=true
OIDC_PROVIDER_NAME=authentik
OIDC_CONFIGURATION_URL=https://auth.netgrimoire.com/application/o/mealie/.well-known/openid-configuration
OIDC_CLIENT_ID=tidMeWe3Ak30zRzcmC5vwoCqAIHXQsaVwJEp44Mz
OIDC_CLIENT_SECRET=OD0CLgELUEWGoZ8IUnduGbxhyhh4vgjMBxBAjyopNOkATWIEWSYeWRDdfY6ulX2Fj7zuUp9dpgzjoFatNviLD8E5Cv2815eDrZxH9gNb52Taur0LzqBPk25yLCvsnjXK
OIDC_AUTO_REDIRECT=true
OIDC_REMEMBER_ME=true
OIDC_SIGNUP_ENABLED=true
OIDC_USER_CLAIM=sub
OIDC_NAME_CLAIM=preferred_username
OIDC_GROUPS_CLAIM=groups
OIDC_SCOPES_OVERRIDE=openid profile email
OIDC_USER_GROUP=mealie-users
OIDC_ADMIN_GROUP=mealie-admins
```

### Deploy
```bash
cd services/swarm/stack/mealie
set -a && source .env && set +a
docker stack config --compose-file mealie-stack.yml > resolved.yml
docker stack deploy --compose-file resolved.yml mealie
rm resolved.yml
docker stack services mealie
```

### First Run
This service should be restarted after the first deployment to ensure all configurations are applied.

---

## User Guide

### Accessing mealie
| Service | URL | Purpose |
|---------|-----|---------|
recipe.netgrimoire.com | recipe.netgrimoire.com | Mealie web application |

### Primary Use Cases
The primary use case for this service is to manage and share recipes in the NetGrimoire environment.

### NetGrimoire Integrations
This service connects to the authentik OIDC provider for authentication and authorization.

---

## Operations

### Monitoring
```bash
docker stack services mealie
docker service logs -f mealie
```

### Backups
Critical data should be backed up regularly, but reconstructing the database from backups is currently not supported.

### Restore
```bash
cd services/swarm/stack/mealie
./deploy.sh
```

---

## Common Failures
| Symptom | Cause | Fix |
|---------|-------|-----|
* Mealie application crashes on startup | Insufficient resources | Increase node resources or scale up the stack |
* Authentication issues with authentik OIDC provider | Incorrect OIDC configuration | Review and update OIDC configuration in environment variables |
* Database errors | Corrupted database | Run docker service logs -f mealie to diagnose issue |

---

## Changelog

| Date | Commit | Summary |
|------|--------|---------|
| 2026-04-15 | 3a30cd8a | Initial documentation creation |
| 2026-04-15 | ce9de8f3 | Update environment variables for OIDC provider configuration |
| 2026-04-15 | 1076a1ad | Implement first-run logic after deployment |
| 2026-04-15 | 6023da64 | Add support for backups and restore process |
| 2026-04-15 | 52bc39f9 | Update logging commands for monitoring |

---

## Notes
- Generated by Gremlin on 2026-04-16T03:27:57.689Z
- Source: swarm/mealie.yaml
- Review User Guide and Changelog sections