Commit Graph

57 Commits

Author SHA1 Message Date
Andrew Dolgov 68a1202e2e add a hack to send fpm children logs to docker-captured stderr 2021-03-07 10:32:46 +03:00
Andrew Dolgov 2b7c39d76d use one build command with static 2021-03-05 13:56:31 +03:00
Andrew Dolgov 9482589032 reduce amount of layers when building 2021-03-05 13:50:55 +03:00
Andrew Dolgov ac9d233688 remove manual loading of base database schema 2021-03-04 09:28:32 +03:00
Andrew Dolgov e3dd638852 add tokenizer 2021-03-03 19:16:16 +03:00
Andrew Dolgov 2f293c9c59 copy config.php earlier so it gets chown-ed to app:app 2021-02-25 19:31:24 +03:00
Andrew Dolgov 99a7753d92 config.php cleanup 2021-02-23 00:05:49 +03:00
Andrew Dolgov 1db582cab6 cleanup env vars which are at default value 2021-02-22 23:57:29 +03:00
Andrew Dolgov e1aa2daab1 minor fixes 2021-02-22 23:48:14 +03:00
Andrew Dolgov 5a9cac5986 default TTRSS_XDEBUG_PORT if unset (and is debugging enabled) 2021-02-22 12:50:15 +03:00
Andrew Dolgov c03e0f65e7 add optional support for xdebug 2021-02-22 12:13:20 +03:00
Andrew Dolgov 75d1291976 always overvwrite config.php with bundled one on startup 2021-02-08 18:32:19 +03:00
Andrew Dolgov 2e13396bd7 use clean alpine 3.13 base 2021-02-08 08:18:17 +03:00
Andrew Dolgov ce945d6acb hide git warning re: rebase 2021-02-05 23:23:57 +03:00
Andrew Dolgov c1ad950797 initial WIP for php8 2021-02-05 20:07:28 +03:00
Andrew Dolgov ef24fccd6f expect RESTORE_SCHEMA in SCRIPT_ROOT 2021-02-02 14:01:07 +03:00
Andrew Dolgov 7529767f49 move container-related files outside of / 2021-02-02 11:28:52 +03:00
Andrew Dolgov 702dd2841c fix previous 2021-02-01 21:44:51 +03:00
Andrew Dolgov 0cded4bb78 auto update new-style config.php on container boot 2021-02-01 21:43:23 +03:00
Andrew Dolgov fdd507c179 re-enable nginx_xaccel; remove the rest of sed stuff from startup 2021-02-01 10:30:31 +03:00
Andrew Dolgov 5e55651312 silence getenv-based config check 2021-02-01 08:51:47 +03:00
Andrew Dolgov 99323f8665 prefix config.php-related environment variables with TTRSS_ 2021-02-01 08:42:05 +03:00
Andrew Dolgov 16801071fc emit a warning if old-style config.php is detected 2021-01-31 21:31:35 +03:00
Andrew Dolgov 5034a7e2b9 set default false env vars to blank instead of string literal 'false' 2021-01-31 15:56:45 +03:00
Andrew Dolgov a56b3956b2 don't dump env 2021-01-31 15:29:15 +03:00
Andrew Dolgov 828c4180cd pull all set environment variables into app/etc 2021-01-31 15:26:19 +03:00
Andrew Dolgov 5f6651e6f0 initial for env-based setup 2021-01-31 15:05:50 +03:00
Andrew Dolgov 6cccc777d3 build app image with php7-iconv 2021-01-27 07:52:37 +03:00
Andrew Dolgov 80a95f7b30 remove config bak if it exists in DST_DIR 2020-10-11 09:30:27 +03:00
Andrew Dolgov 69bdf5c5df do not create backup config.php when rewriting SELF_URL_PATH 2020-10-11 09:09:20 +03:00
Andrew Dolgov 04a5438966 backups: also backup tt-rss local directories 2020-09-30 14:59:00 +03:00
Andrew Dolgov 707b79b52f add side container which backups tt-rss database once a week
bump alpine image to 3.12
2020-09-30 12:30:02 +03:00
Andrew Dolgov 328984f153 use different CLI syntax for update-schema 2020-09-30 06:57:04 +03:00
Andrew Dolgov d2e8c85f4c update schema on startup 2020-09-28 13:55:06 +03:00
Andrew Dolgov 1eff29a23f increase memory limit for php CLI processes 2020-09-27 17:54:45 +03:00
Andrew Dolgov 3c0599566b apply more sane permissions on cache directories 2020-09-17 08:24:46 +03:00
Ezwen 676ff0d9da Add and enable php7-openssl in the 'app' image 2020-04-26 10:27:02 +00:00
Andrew Dolgov 168b3bdb4e don't set DB_HOST twice, duh 2020-04-23 16:16:05 +03:00
Andrew Dolgov 9101ad6efc don't rely on DB_HOST, DB_TYPE, and DB_PORT set in config.php-dist; set proper values on startup 2020-04-23 16:12:09 +03:00
Andrew Dolgov dff0116139 1. do not crash if git master is not available on startup, but local source exists (use that instead)
2. reduce verbosity of startup scripts
2020-02-22 10:03:59 +03:00
Andrew Dolgov 62f9b960ca include php7-zip in the app image (for data_migration plugin) 2020-01-25 08:42:41 +03:00
Andrew Dolgov efd85e33a4 only create app user if it doesn't exist 2020-01-23 18:50:04 +03:00
Andrew Dolgov e9563c4a87 move app user creation to startup scripts
run fpm as app user
2020-01-23 16:59:10 +03:00
Andrew Dolgov 59eb978976 updater: wait until app container finishes initializing instead of checking for config.php 2020-01-23 13:55:44 +03:00
Andrew Dolgov fa73a498a3 prevent updater from failing repeatedly on first startup while app volume is not ready 2020-01-23 12:00:03 +03:00
krimil 32bd22435f Remove cron update script, add updater service 2020-01-22 07:26:16 -06:00
Andrew Dolgov 9b0a93677d 1. move .env to .env-dist so local customization is not clashing with the
repo
2. rewrite SELF_URL_PATH based on configured value even if config.php
exists
3. update README
2020-01-19 12:54:24 +03:00
Andrew Dolgov 05d341df89 add support for restoring schema on restart (needed only for demo, not normally used) 2019-12-11 11:38:44 +03:00
Andrew Dolgov 9adf705f70 pg_isready: don't try to connect as root 2019-12-09 09:48:50 +03:00
Andrew Dolgov 3399b10261 Merge branch 'master' of https://git.tt-rss.org/fox/ttrss-docker-compose 2019-12-09 07:18:19 +03:00