Move envrironment variables to docker
Using the `TTRSS_` prefix to follow upstream standard rather than container's https://github.com/lunik1/docker-tt-rss/issues/3
This commit is contained in:
parent
8d136f0b55
commit
3eb286c9bd
3 changed files with 8 additions and 21 deletions
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
putenv('TTRSS_DB_USER=tt-rss');
|
||||
putenv('TTRSS_DB_NAME=tt-rss');
|
||||
putenv('TTRSS_DB_PASS=tt-rss');
|
||||
|
||||
putenv('TTRSS_SELF_URL_PATH=https://tt-rss.jakehoward.tech/');
|
||||
|
||||
putenv('TTRSS_ENABLE_REGISTRATION=false');
|
||||
|
||||
putenv('TTRSS_CHECK_FOR_UPDATES=false');
|
||||
putenv('TTRSS_ENABLE_GZIP_OUTPUT=true');
|
|
@ -7,8 +7,15 @@ services:
|
|||
- PUID={{ docker_user.id }}
|
||||
- PGID={{ docker_user.id }}
|
||||
- TZ={{ TZ }}
|
||||
|
||||
- TTRSS_DB_USER=tt-rss
|
||||
- TTRSS_DB_NAME=tt-rss
|
||||
- TTRSS_DB_PASS=tt-rss
|
||||
- TTRSS_SELF_URL_PATH=https://tt-rss.jakehoward.tech/
|
||||
- TTRSS_ENABLE_REGISTRATION=false
|
||||
- TTRSS_CHECK_FOR_UPDATES=false
|
||||
- TTRSS_ENABLE_GZIP_OUTPUT=true
|
||||
volumes:
|
||||
- "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro"
|
||||
- "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons"
|
||||
- ./plugins:/config/plugins.local
|
||||
restart: unless-stopped
|
||||
|
|
|
@ -25,15 +25,6 @@
|
|||
register: compose_file
|
||||
become: true
|
||||
|
||||
- name: Install tt-rss config
|
||||
template:
|
||||
src: files/tt-rss/config.php
|
||||
dest: "{{ app_data_dir }}/tt-rss/config.php"
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
register: config_file
|
||||
become: true
|
||||
|
||||
- name: Install fever plugin
|
||||
git:
|
||||
repo: https://github.com/DigitalDJ/tinytinyrss-fever-plugin
|
||||
|
|
Loading…
Reference in a new issue