mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-23 07:48:04 +01:00
add miniflux
This commit is contained in:
parent
acbe71953a
commit
4d399487bf
5 changed files with 59 additions and 0 deletions
|
@ -13,5 +13,6 @@
|
||||||
- import_playbook: lyon-transports.yaml # noqa: name[play]
|
- import_playbook: lyon-transports.yaml # noqa: name[play]
|
||||||
- import_playbook: manuels.yaml # noqa: name[play]
|
- import_playbook: manuels.yaml # noqa: name[play]
|
||||||
- import_playbook: media.yaml # noqa: name[play]
|
- import_playbook: media.yaml # noqa: name[play]
|
||||||
|
- import_playbook: miniflux.yaml # noqa: name[play]
|
||||||
- import_playbook: test_headers.yaml # noqa: name[play]
|
- import_playbook: test_headers.yaml # noqa: name[play]
|
||||||
- import_playbook: wallabag.yaml # noqa: name[play]
|
- import_playbook: wallabag.yaml # noqa: name[play]
|
||||||
|
|
19
playbooks/apps/files/miniflux/docker-compose.yaml
Normal file
19
playbooks/apps/files/miniflux/docker-compose.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
services:
|
||||||
|
miniflux:
|
||||||
|
image: miniflux/miniflux:latest
|
||||||
|
restart: always
|
||||||
|
env_file: miniflux.env
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
||||||
|
mem_limit: 512m
|
||||||
|
ports:
|
||||||
|
- "8008:3298"
|
||||||
|
db:
|
||||||
|
image: postgres:15
|
||||||
|
restart: always
|
||||||
|
env_file: postgres.env
|
||||||
|
volumes:
|
||||||
|
- ./db_data:/var/lib/postgresql/data
|
||||||
|
mem_limit: 512m
|
21
playbooks/apps/miniflux.yaml
Normal file
21
playbooks/apps/miniflux.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
- name: Miniflux
|
||||||
|
hosts: servers
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Docker
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: docker
|
||||||
|
|
||||||
|
vars:
|
||||||
|
docker_app_name: miniflux
|
||||||
|
db_password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
62393237393135383461613666613935376565363363383336356565623763313135383630613436
|
||||||
|
3132656464383036613234666335303239623137366165630a363763666635313262303334336364
|
||||||
|
37373530396634303737613162653961323163316337383635303865366134623637633732313436
|
||||||
|
3865383032646165640a356131356134316131613263303035383262323962636439363539656137
|
||||||
|
30343339633431616266356531666264343965343064323664363037393766613634386464336333
|
||||||
|
33313838306461303165366539323535376139383461373665653231613438303661363135623364
|
||||||
|
37646635303032376364346263353139383030653132376266323738376161366466383238313064
|
||||||
|
39356434623137643135
|
16
playbooks/apps/templates/miniflux/miniflux.env.j2
Normal file
16
playbooks/apps/templates/miniflux/miniflux.env.j2
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
POLLING_FREQUENCY=2
|
||||||
|
LISTEN_ADDR=0.0.0.0:3298
|
||||||
|
DATABASE_URL=postgres://miniflux:{{ db_password }}@db/miniflux?sslmode=disable
|
||||||
|
LOG_DATE_TIME=1
|
||||||
|
LOG_FORMAT=text
|
||||||
|
LOG_FILE=stdout
|
||||||
|
LOG_LEVEL=info
|
||||||
|
WORKER_POOL_SIZE=10
|
||||||
|
BATCH_SIZE=20
|
||||||
|
BASE_URL=https://reader.augendre.info/
|
||||||
|
WEBAUTHN=1
|
||||||
|
RUN_MIGRATIONS=1
|
||||||
|
HTTPS=1
|
||||||
|
DISABLE_HSTS=1
|
||||||
|
FETCH_YOUTUBE_WATCH_TIME=0
|
||||||
|
POLLING_PARSING_ERROR_LIMIT=50
|
2
playbooks/apps/templates/miniflux/postgres.env.j2
Normal file
2
playbooks/apps/templates/miniflux/postgres.env.j2
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
POSTGRES_USER=miniflux
|
||||||
|
POSTGRES_PASSWORD={{ db_password }}
|
Loading…
Reference in a new issue