From 2b4111cb15f6b141ace6597cd61b8e817320f8c0 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 27 Jun 2020 10:48:03 +0300 Subject: [PATCH] Small changes --- docker/tt-rss/.env-dist | 18 ++++++++++++++++++ docker/tt-rss/.gitignore | 1 - docker/tt-rss/docker-compose.yml | 17 ++++++++++++++++- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 docker/tt-rss/.env-dist delete mode 100644 docker/tt-rss/.gitignore diff --git a/docker/tt-rss/.env-dist b/docker/tt-rss/.env-dist new file mode 100644 index 0000000..1ea7ab1 --- /dev/null +++ b/docker/tt-rss/.env-dist @@ -0,0 +1,18 @@ +# Copy this file to .env before building the container. +# Put any local modifications here. + +BUILD_TAG=latest + +POSTGRES_USER=postgres +POSTGRES_PASSWORD=password + +OWNER_UID=1000 +OWNER_GID=1000 + +# You can keep this as localhost unless you want to use the ssl sidecar +# container (I suggest terminating ssl on the reverse proxy instead). +HTTP_HOST=localhost + +# You will likely need to set this to the correct value, see README.md +# for more information. +SELF_URL_PATH=http://localhost:8280/tt-rss diff --git a/docker/tt-rss/.gitignore b/docker/tt-rss/.gitignore deleted file mode 100644 index ad70dc7..0000000 --- a/docker/tt-rss/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.env-dist diff --git a/docker/tt-rss/docker-compose.yml b/docker/tt-rss/docker-compose.yml index 6ffe6d7..98237ed 100644 --- a/docker/tt-rss/docker-compose.yml +++ b/docker/tt-rss/docker-compose.yml @@ -49,8 +49,23 @@ services: image: cthulhoo/ttrss-web restart: unless-stopped ports: - - ${HTTP_PORT}:2015 + - 8280:2015 volumes: - /docker/tt-rss/app:/var/www/html:ro depends_on: - app + labels: + - "traefik.enable=true" + + - "traefik.http.routers.tt-rss-redirect.entrypoints=http" + - "traefik.http.routers.tt-rss-redirect.rule=Host(`rss.reekynet.com`)" + - "traefik.http.middlewares.http2https.redirectscheme.scheme=https" + - "traefik.http.routers.tt-rss-redirect.middlewares=http2https" + + - "traefik.http.routers.tt-rss.entrypoints=https" + - "traefik.http.routers.tt-rss.rule=Host(`rss.reekynet.com`)" + - "traefik.http.routers.tt-rss.tls=true" + - "traefik.http.routers.tt-rss.tls.certresolver=http" + - "traefik.http.routers.tt-rss.service=tt-rss" + - "traefik.docker.network=proxy" + - "traefik.http.services.tt-rss.loadbalancer.server.port=8280"