Skip to main content

Install Mealie on Docker Compose

it works best with the  "postgres" data base.

The configuration looks like this inside a docker-compose YAML file. 

version: "3.1"
services:
  mealie:
    container_name: mealie
    image: hkotel/mealie:latest
    restart: always
    ports:
      - 8000:80
    depends_on:
      - postgres
    environment:
      PUID: 1000
      PGID: 1000
      PST: America/Los Angeles
      # Database Settings
      DB_ENGINE: postgres # Optional: 'sqlite', 'postgres'
      POSTGRES_USER: mealie
      POSTGRES_PASSWORD: mealieisabitch
      POSTGRES_SERVER: postgres
      POSTGRES_PORT: 5432
      POSTGRES_DB: mealie
      # Default Recipe Settings
      RECIPE_PUBLIC: 'true'
      RECIPE_SHOW_NUTRITION: 'true'
      RECIPE_SHOW_ASSETS: 'true'
      RECIPE_LANDSCAPE_VIEW: 'true'
      RECIPE_DISABLE_COMMENTS: 'false'
      RECIPE_DISABLE_AMOUNT: 'false'
      # Gunicorn
      # WEB_CONCURRENCY: 2
      # WORKERS_PER_CORE: 0.5
      # MAX_WORKERS: 8
    volumes:
      - /your/local/storage/folder:/app/data
  postgres:
    container_name: postgres
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: mealieisabitch
      POSTGRES_USER: mealie

Postgres would not use a different port. When I changed it, the Mealie container would keep restarting. After changing the port back to 5432, it ran fine.

The default user name and password are:

changeme@example.com
Or
changeme@email.com 
MyPassword