🍽 My Mealie Setup
#This Mealie setup runs in a Docker container and provides a self-hosted recipe and meal planning application. It includes configurations for backend environment variables, volume mounts, and resource limits.
⚙️ My Configuration Details
#🌍 Environment Variables
#Variable | Description |
---|
ALLOW_SIGNUP=true | Enables user sign-up |
PUID=1000 | User ID for permission management |
PGID=1000 | Group ID for permission management |
TZ=Europe/London | Timezone configuration |
MAX_WORKERS=1 | Defines the number of worker threads |
WEB_CONCURRENCY=1 | Sets the number of web concurrency workers |
BASE_URL=Your Domain | Base URL for the web interface |
SMTP_HOST=Your SMTP Server host | SMTP host for sending emails |
SMTP_PORT=587 | SMTP server port |
SMTP_FROM_NAME=Mealie | Sender name for emails |
SMTP_AUTH_STRATEGY=TLS | SMTP authentication strategy |
SMTP_FROM_EMAIL=Your Email | Sender email address |
SMTP_USER=Your Username | SMTP username |
SMTP_PASSWORD=Your Password | SMTP password |
📂 Volume Mounts
#Volume | Description |
---|
~/mealie/config:/app/data/ | Mounts configuration data for persistence |
🔗 Networking
#Port Mapping | Function |
---|
9925:9000 | Mealie web interface for recipe and meal planning |
🧰 Resource Limits
#
📜 My Docker Compose Configuration
#services:
mealie:
image: ghcr.io/mealie-recipes/mealie:latest # Mealie latest image
container_name: mealie # Container name for identification
restart: always # Always restart the container on failure
ports:
- "9925:9000" # Expose port 9000 for the Mealie web interface
deploy:
resources:
limits:
memory: 1000M # Set memory limit to 1000MB
volumes:
- ~/mealie/config:/app/data/ # Mount the configuration directory
environment:
# Set Backend ENV Variables Here
ALLOW_SIGNUP: true
PUID: 1000
PGID: 1000
TZ: Europe/London
MAX_WORKERS: 1
WEB_CONCURRENCY: 1
BASE_URL: Your Domain
SMTP_HOST: Your SMTP Server host
SMTP_PORT: 587
SMTP_FROM_NAME: Mealie
SMTP_AUTH_STRATEGY: TLS
SMTP_FROM_EMAIL: Your Email
SMTP_USER: Your Username
SMTP_PASSWORD: Your Password
🔐 Using Docker Secrets for Environment Variables
#You can set any environment variable from a file by using a special prepend FILE__
.
For example:
FILE__MYVAR=/run/secrets/mysecretvariable