Commit Graph

76 Commits (4ae13e8900bcf920cb0bdd873eb2d0c5b361052a)

Author SHA1 Message Date
Andrew Dolgov 959e07700f
set random password for admin on first startup unless ADMIN_USER_PASS is set
Andrew Dolgov 4326aa8d32
updater: unset PASS variables
Andrew Dolgov 04499dc0a9
Merge branch 'master' of git.tt-rss.org:fox/ttrss-docker-compose
Andrew Dolgov e472670de7
* add environment variable to add initial users on startup
* list supported environment variables in .env-dist
Andrew Dolgov ab8f1c5420 * temporarily add more startup debugging
* adjust chown ordering a bit
Andrew Dolgov cc648eb878 * perform all operations on git repositories under 'app' user
* initially clone master repo with --depth 1 to reduce first startup time
 * only check updates for actual git repos in plugins.local/
Andrew Dolgov 95ac4a70f9 revise previous (again)
Andrew Dolgov 46a7d19374 revise previous
Andrew Dolgov 731725fb4e make PHP worker process and memory limits configurable
Andrew Dolgov 219913d12b updater: force adding user/group even if GID/UID is duplicate
Andrew Dolgov c552bb48c9 * force adding user/group even if GID/UID is duplicate
* allow running FPM as root, if needed
Andrew Dolgov 283c221fff don't try to update base tt-rss source when updating plugins.local
Andrew Dolgov d9b96dc114 switch base image to alpine 3.14
Andrew Dolgov bd0c7ebf0e update all local plugins on startup, unless forbidden by TTRSS_NO_STARTUP_PLUGIN_UPDATES
Andrew Dolgov 3c30e41606 run update-ca-certificates on container startup
Andrew Dolgov ab100cd2db Revert "add workaround for slow podman internal dns resolver"
This reverts commit 3c31de3427.

should use "dns_search: dns.podman" in the override instead

https://github.com/containers/podman/issues/9169#issuecomment-807417455
Andrew Dolgov 3c31de3427 add workaround for slow podman internal dns resolver
Andrew Dolgov 063ed46d91 add php8-exif
Andrew Dolgov d6e307c98b make .app_is_ready flag a bit later
Andrew Dolgov 68a1202e2e add a hack to send fpm children logs to docker-captured stderr
Andrew Dolgov 2b7c39d76d use one build command with static
Andrew Dolgov 9482589032 reduce amount of layers when building
Andrew Dolgov ac9d233688 remove manual loading of base database schema
Andrew Dolgov e3dd638852 add tokenizer
Andrew Dolgov 2f293c9c59 copy config.php earlier so it gets chown-ed to app:app
Andrew Dolgov 99a7753d92 config.php cleanup
Andrew Dolgov 1db582cab6 cleanup env vars which are at default value
Andrew Dolgov e1aa2daab1 minor fixes
Andrew Dolgov 5a9cac5986 default TTRSS_XDEBUG_PORT if unset (and is debugging enabled)
Andrew Dolgov c03e0f65e7 add optional support for xdebug
Andrew Dolgov 75d1291976 always overvwrite config.php with bundled one on startup
Andrew Dolgov 2e13396bd7 use clean alpine 3.13 base
Andrew Dolgov ce945d6acb hide git warning re: rebase
Andrew Dolgov c1ad950797 initial WIP for php8
Andrew Dolgov ef24fccd6f expect RESTORE_SCHEMA in SCRIPT_ROOT
Andrew Dolgov 7529767f49 move container-related files outside of /
Andrew Dolgov 702dd2841c fix previous
Andrew Dolgov 0cded4bb78 auto update new-style config.php on container boot
Andrew Dolgov fdd507c179 re-enable nginx_xaccel; remove the rest of sed stuff from startup
Andrew Dolgov 5e55651312 silence getenv-based config check
Andrew Dolgov 99323f8665 prefix config.php-related environment variables with TTRSS_
Andrew Dolgov 16801071fc emit a warning if old-style config.php is detected
Andrew Dolgov 5034a7e2b9 set default false env vars to blank instead of string literal 'false'
Andrew Dolgov a56b3956b2 don't dump env
Andrew Dolgov 828c4180cd pull all set environment variables into app/etc
Andrew Dolgov 5f6651e6f0 initial for env-based setup
Andrew Dolgov 6cccc777d3 build app image with php7-iconv
Andrew Dolgov 80a95f7b30 remove config bak if it exists in DST_DIR
Andrew Dolgov 69bdf5c5df do not create backup config.php when rewriting SELF_URL_PATH
Andrew Dolgov 04a5438966 backups: also backup tt-rss local directories