version: "3.8" services: mealie: image: mealie/mealie:latest container_name: mealie restart: unless-stopped ports: - "{{ mealie_port }}:80" environment: - PUID=1000 - PGID=1000 - TZ={{ timezone }} - ALLOW_SIGNUP=true - DB_ENGINE=postgres - POSTGRES_USER=mealie - POSTGRES_PASSWORD=mealie - POSTGRES_SERVER=postgres - POSTGRES_PORT=5432 - POSTGRES_DB=mealie volumes: - {{ mealie_data_dir }}:/app/data depends_on: - postgres healthcheck: test: ["CMD", "curl", "-f", "http://localhost:80/api/app/about"] interval: 30s timeout: 10s retries: 3 postgres: image: postgres:13 container_name: mealie-postgres restart: unless-stopped environment: - POSTGRES_USER=mealie - POSTGRES_PASSWORD=mealie - POSTGRES_DB=mealie volumes: - {{ mealie_data_dir }}/postgres:/var/lib/postgresql/data