-
Notifications
You must be signed in to change notification settings - Fork 5
/
mealie.yml
98 lines (88 loc) · 4.37 KB
/
mealie.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
- hosts: homelab
vars:
application: mealie
docker_network: "{{ networks.pub }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create postgres container
ansible.builtin.include_role:
name: postgres
vars:
postgres_version: 16
postgres_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
30663435383831383261393330643163393264646330326666393332343861326136303461613863
3138376538646230393832613538323963333765623161620a616138623732333735653437616132
32313063306133636431623062323734313834323863366439666530316432393133323138636236
3830663132316566300a616464336137666336633666666336346666666564323235653161613837
32353665643765353362616533343463386564393737613265636238656261303765
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: ghcr.io/mealie-recipes/mealie:v2.2.0
env:
# https://docs.mealie.io/documentation/getting-started/installation/backend-config/
## General
PUID: "{{ common_user_id | string }}"
PGID: "{{ common_group_id | string }}"
BASE_URL: "https://{{ application }}.{{ common_tld }}"
TZ: "{{ common_timezone }}"
ALLOW_SIGNUP: "false"
## Database
DB_ENGINE: postgres
POSTGRES_USER: "{{ _postgres_username }}"
POSTGRES_PASSWORD: "{{ _postgres_password }}"
POSTGRES_SERVER: "{{ _postgres_hostname }}"
POSTGRES_PORT: "{{ _postgres_port | string }}"
POSTGRES_DB: "{{ _postgres_database }}"
## Email
SMTP_HOST: "{{ common_email_server }}"
SMTP_PORT: "{{ common_email_port | string }}"
SMTP_FROM_NAME: "{{ application | title }}"
SMTP_AUTH_STRATEGY: "{{ 'tls' if common_email_protocol == 'tls' else 'ssl' }}"
SMTP_FROM_EMAIL: "{{ application }}{{ common_email_to }}"
SMTP_USER: "{{ common_email_username }}"
SMTP_PASSWORD: "{{ common_email_password }}"
## OpenID Connect (OIDC)
OIDC_AUTH_ENABLED: "true"
OIDC_CONFIGURATION_URL: "https://authelia.{{ common_tld }}/.well-known/openid-configuration"
OIDC_CLIENT_ID: "{{ application }}"
OIDC_CLIENT_SECRET: "{{ ldap_oidc_apps.mealie.secret }}"
OIDC_PROVIDER_NAME: "Authelia"
volumes:
- "{{ config_directory }}/data:/app/data"
traefik:
- port: 9000
homepage:
group: Home
weight: 200
description: Recipe management
widget:
key: !vault |
$ANSIBLE_VAULT;1.1;AES256
30356534623433393034656664363439393730613638386461663937666636643264663838613561
3739636234363461303466336262633139626434323063610a636432343935346564356365323361
38313131376161626334366165353339356566356431623435373462323639353432626636303738
3331393939626563390a306333643138613865616134326235336535303065653731313664376364
38303438306132343439376436613664623337393938323631376166376139353736656235393165
33383032393330666266623533643139333130663764366335376131353837383261623264633837
61393439643862346532643163303632666636623136616262663939383863336532663666336639
30326562396238633738613136653235636332613636346130333436393038336437653763316466
32363766326438656666373461663663666331363835383931663261643035313762623561656536
65623961666330653232306539356530383830376335633434343563303638666138376330323638
31303830343865313463663730383434616434623333666232336365383436363362346235323039
30623463366334323531393030386538666534303235393135326131616438333133313135326263
66363130303735323265613566373761646333626432653438643363373665373433616464316434
37646166373833306266356362626366626132616232313237656539353166653430343338653764
61386464353333663763633039363861386235333730623134393836376364303430396466643662
30663163613339613566313830636263393033363930356265353538366433303934346536346562
6339
fields: '["recipes", "categories"]'