2019-04-25 10:05:28 +00:00
|
|
|
---
|
|
|
|
- name: create tt-rss folders
|
|
|
|
file:
|
|
|
|
name: "{{ ttrss.volume_folder }}/{{ volume }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- "config"
|
|
|
|
- "db"
|
|
|
|
loop_control:
|
|
|
|
loop_var: volume
|
|
|
|
|
|
|
|
- name: "set up tt-rss"
|
2021-02-01 20:06:23 +00:00
|
|
|
docker_compose:
|
2019-04-25 10:05:28 +00:00
|
|
|
project_name: "tt-rss"
|
|
|
|
pull: yes
|
|
|
|
definition:
|
|
|
|
version: "3.6"
|
|
|
|
services:
|
|
|
|
ttrss_db:
|
|
|
|
container_name: "ttrss_db"
|
|
|
|
image: "postgres:11"
|
|
|
|
restart: "unless-stopped"
|
|
|
|
networks:
|
|
|
|
- "ttrss"
|
|
|
|
volumes:
|
|
|
|
- "{{ ttrss.volume_folder }}/db:/var/lib/postgresql/data"
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "ttrss"
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.ttrss }}"
|
|
|
|
|
|
|
|
ttrss_app:
|
|
|
|
container_name: ttrss_app
|
|
|
|
image: "linuxserver/tt-rss"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- ttrss
|
|
|
|
- external_services
|
|
|
|
volumes:
|
|
|
|
- "{{ ttrss.volume_folder }}/config:/config"
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: "{{ ttrss.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ ttrss.domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
|
|
TZ: "Europe/Copenhagen"
|
|
|
|
labels:
|
|
|
|
com.ouroboros.enable: "true"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
external_services:
|
|
|
|
external:
|
|
|
|
name: external_services
|
|
|
|
ttrss:
|
|
|
|
name: "ttrss"
|