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

View file

@ -16,17 +16,10 @@
register: compose_file register: compose_file
become: true 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 - name: Install tt-rss config
template: template:
src: files/tt-rss/config.php src: files/tt-rss/config.php
dest: /opt/tt-rss/config/config.php dest: /opt/tt-rss/config.php
mode: "{{ docker_compose_file_mask }}" mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}" owner: "{{ docker_user.name }}"
register: config_file register: config_file