Move tt-rss config out of config directory

This commit is contained in:
Jake Howard 2020-07-02 18:24:26 +01:00
parent 689c0cecd9
commit c80d4b7e04
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 5 additions and 9 deletions

View File

@ -8,7 +8,8 @@ services:
- PGID={{ docker_user.id }}
- TZ=Europe/London
volumes:
- ./config:/config
- ./config.php:/config/config.php:ro
- ./feed-icons:/config/feed-icons
restart: unless-stopped
labels:
- traefik.enable=true
@ -16,6 +17,8 @@ services:
- traefik.http.routers.tt-rss.tls.certresolver=le
depends_on:
- db
tmpfs:
- /config/log
db:
image: postgres:12-alpine

View File

@ -16,17 +16,10 @@
register: compose_file
become: true
- name: Create tt-rss config directory
file:
path: /opt/tt-rss/config
state: directory
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install tt-rss config
template:
src: files/tt-rss/config.php
dest: /opt/tt-rss/config/config.php
dest: /opt/tt-rss/config.php
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
register: config_file