From bb70186f7c6eb4b5aa394a0e6f8c5e54e7c068e4 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 27 Jun 2020 10:37:48 +0300 Subject: [PATCH] Added tt-rss --- docker/tt-rss/docker-compose.yml | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docker/tt-rss/docker-compose.yml diff --git a/docker/tt-rss/docker-compose.yml b/docker/tt-rss/docker-compose.yml new file mode 100644 index 0000000..6ffe6d7 --- /dev/null +++ b/docker/tt-rss/docker-compose.yml @@ -0,0 +1,56 @@ +version: "3" + +services: + db: + image: postgres:12-alpine + restart: unless-stopped + volumes: + - /docker/tt-rss/postgresql:/var/lib/postgresql/data + environment: + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_USER=${POSTGRES_USER} + + app: + image: cthulhoo/ttrss-fpm-pgsql-static + restart: unless-stopped + environment: + - DB_TYPE=pgsql + - DB_HOST=db + - DB_NAME=${POSTGRES_USER} + - DB_USER=${POSTGRES_USER} + - DB_PASS=${POSTGRES_PASSWORD} + - OWNER_UID=${OWNER_UID} + - OWNER_GID=${OWNER_GID} + - SELF_URL_PATH=${SELF_URL_PATH} + volumes: + - /docker/tt-rss/app:/var/www/html + depends_on: + - db + + updater: + image: cthulhoo/ttrss-fpm-pgsql-static + restart: unless-stopped + environment: + - DB_TYPE=pgsql + - DB_HOST=db + - DB_NAME=${POSTGRES_USER} + - DB_USER=${POSTGRES_USER} + - DB_PASS=${POSTGRES_PASSWORD} + - OWNER_UID=${OWNER_UID} + - OWNER_GID=${OWNER_GID} + - SELF_URL_PATH=${SELF_URL_PATH} + volumes: + - /docker/tt-rss/app:/var/www/html + depends_on: + - app + command: /updater.sh + + web: + image: cthulhoo/ttrss-web + restart: unless-stopped + ports: + - ${HTTP_PORT}:2015 + volumes: + - /docker/tt-rss/app:/var/www/html:ro + depends_on: + - app