replace miniflux with freshrss
This commit is contained in:
parent
c6f47e454d
commit
4ea3c8dfb9
4 changed files with 64 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
- {role: 'mastodon', tags: 'mastodon'}
|
- {role: 'mastodon', tags: 'mastodon'}
|
||||||
- {role: 'seafile', tags: 'seafile'}
|
- {role: 'seafile', tags: 'seafile'}
|
||||||
- {role: 'jitsi', tags: 'jitsi'}
|
- {role: 'jitsi', tags: 'jitsi'}
|
||||||
- {role: 'miniflux', tags: 'miniflux'}
|
- {role: 'freshrss', tags: 'freshrss'}
|
||||||
- name: Setup dataserver
|
- name: Setup dataserver
|
||||||
hosts: dataserver
|
hosts: dataserver
|
||||||
roles:
|
roles:
|
||||||
|
|
17
roles/freshrss/tasks/main.yml
Normal file
17
roles/freshrss/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
- name: Create app directory
|
||||||
|
file:
|
||||||
|
path: "{{ service_dir }}"
|
||||||
|
state: directory
|
||||||
|
- name: Copy Docker Compose script
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/docker-compose.yml.j2"
|
||||||
|
dest: "{{ service_dir }}/docker-compose.yml"
|
||||||
|
- name: Create data directory
|
||||||
|
file:
|
||||||
|
path: "{{ data_dir }}"
|
||||||
|
state: directory
|
||||||
|
- name: Start the Docker Compose
|
||||||
|
docker_compose:
|
||||||
|
project_src: "{{ service_dir }}"
|
||||||
|
pull: true
|
||||||
|
remove_orphans: true
|
35
roles/freshrss/templates/docker-compose.yml.j2
Normal file
35
roles/freshrss/templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
version: "2.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
freshrss:
|
||||||
|
image: freshrss/freshrss:edge
|
||||||
|
container_name: freshrss
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
logging:
|
||||||
|
options:
|
||||||
|
max-size: 10m
|
||||||
|
volumes:
|
||||||
|
# Recommended volume for FreshRSS persistent data such as configuration and SQLite databases
|
||||||
|
- /data/freshrss/data:/var/www/FreshRSS/data
|
||||||
|
# Optional volume for storing third-party extensions
|
||||||
|
- /data/freshrss/extensions:/var/www/FreshRSS/extensions
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Amsterdam
|
||||||
|
CRON_MIN: '2,32'
|
||||||
|
FRESHRSS_ENV: development
|
||||||
|
ADMIN_EMAIL: pim@kunis.nl
|
||||||
|
ADMIN_PASSWORD: {{ admin_password }}
|
||||||
|
ADMIN_API_PASSWORD: {{ admin_password }}
|
||||||
|
PUBLISHED_PORT: 443
|
||||||
|
labels:
|
||||||
|
- traefik.http.routers.freshrss.entrypoints=websecure
|
||||||
|
- traefik.http.routers.freshrss.rule=Host(`rss.pizzapim.nl`)
|
||||||
|
- traefik.http.routers.freshrss.tls=true
|
||||||
|
- traefik.http.routers.freshrss.tls.certresolver=pizzapim
|
||||||
|
- traefik.tcp.routers.freshrss.service=freshrss
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
11
roles/freshrss/vars/main.yml
Normal file
11
roles/freshrss/vars/main.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
service_name: freshrss
|
||||||
|
service_dir: "{{ base_service_dir }}/{{ service_name }}"
|
||||||
|
data_dir: "{{ base_data_dir }}/{{ service_name }}"
|
||||||
|
admin_password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
38363734333534376665616439306566613632303739373661333338356533653334323366326130
|
||||||
|
3031316133383432366639613565656134666338326639360a633263363066613964643665316334
|
||||||
|
63373830663239393137653131326630326465343333346430376536393162383836333130353562
|
||||||
|
3336306561636134650a646433633063316431643466326161303666313765323034343233646566
|
||||||
|
66613330616463346561343561616438643763643465373839303861356133313831303338356430
|
||||||
|
6634653635383833303265316662663631376163636134666565
|
Reference in a new issue