2024-09-09 22:37:51 +10:00
|
|
|
---
|
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/mealie"
|
|
|
|
- "{{ data_folder }}/mealie/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
|
|
|
|
- name: Create the mealie container
|
|
|
|
docker_container:
|
|
|
|
name: mealie
|
2024-11-11 22:01:56 +10:00
|
|
|
image: ghcr.io/mealie-recipes/mealie:v2.2.0
|
2024-09-09 22:37:51 +10:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
- name: proxy
|
|
|
|
env:
|
|
|
|
PUID: "1000"
|
|
|
|
PGID: "1000"
|
|
|
|
TZ: "Australia/Brisbane"
|
|
|
|
RECIPE_PUBLIC: "true"
|
|
|
|
RECIPE_SHOW_NUTRITION: "false"
|
|
|
|
RECIPE_SHOW_ASSETS: "true"
|
|
|
|
RECIPE_LANDSCAPE_VIEW: "true"
|
|
|
|
RECIPE_DISABLE_COMMENTS: "true"
|
|
|
|
RECIPE_DISABLE_AMOUNT: "true"
|
|
|
|
BASE_URL: "mealie.comprofix.xyz"
|
|
|
|
SMTP_HOST: "{{MAIL_HOST}}"
|
|
|
|
volumes:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/mealie/data/:/app/data"
|
2024-09-09 22:37:51 +10:00
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.http.routers.mealie.rule: "Host(`mealie.comprofix.xyz`)"
|
|
|
|
traefik.http.routers.mealie.entrypoints: "https"
|
|
|
|
traefik.http.routers.mealie.tls: "true"
|
|
|
|
traefik.http.services.mealie.loadbalancer.server.port: "9000"
|