From fe8cd972b5b72b8983c3f7fd6e7153c78ed278ea Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 12 Dec 2022 00:03:53 -0800 Subject: infra: add ttrss ssm resources --- .../roles/rss/templates/docker-compose.yaml.j2 | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 rss.jinwei.me/config/roles/rss/templates/docker-compose.yaml.j2 (limited to 'rss.jinwei.me/config/roles/rss/templates/docker-compose.yaml.j2') diff --git a/rss.jinwei.me/config/roles/rss/templates/docker-compose.yaml.j2 b/rss.jinwei.me/config/roles/rss/templates/docker-compose.yaml.j2 new file mode 100644 index 0000000..fd556dc --- /dev/null +++ b/rss.jinwei.me/config/roles/rss/templates/docker-compose.yaml.j2 @@ -0,0 +1,32 @@ +version: "3" +services: + ttrss: + image: wangqiru/ttrss:nightly-2022-08-09 + container_name: ttrss + environment: + - SELF_URL_PATH={{ lookup('aws_ssm', '/jinwei-me/ttrss/url') }} + - DB_HOST={{ lookup('aws_ssm', '/jinwei-me/mysql/host') }} + - DB_PORT={{ lookup('aws_ssm', '/jinwei-me/mysql/port') }} + - DB_NAME={{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_name') }} + - DB_USER={{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_user') }} + - DB_PASS={{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_password') }} + - PUID=1000 + - PGID=1000 + volumes: + - {{ rss_home }}/feed-icons:/var/www/feed-icons/ + stdin_open: true + tty: true + restart: always + + mercury: + image: wangqiru/mercury-parser-api:latest + container_name: ttrss_mercury + restart: always + + rssbot: + build: + dockerfile: ./Dockerfile.rssbot + container_name: ttrss_rssbot + restart: always + environment: + - TOKEN={{ lookup('aws_ssm', '/jinwei-me/tgbot/token') }} -- cgit v1.2.3