Small changes

This commit is contained in:
Marko Korhonen 2020-06-27 10:48:03 +03:00
parent 1b82944c5d
commit 633d7b74c9
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
3 changed files with 34 additions and 2 deletions

18
docker/tt-rss/.env-dist Normal file
View file

@ -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

View file

@ -1 +0,0 @@
.env-dist

View file

@ -49,8 +49,23 @@ services:
image: cthulhoo/ttrss-web image: cthulhoo/ttrss-web
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${HTTP_PORT}:2015 - 8280:2015
volumes: volumes:
- /docker/tt-rss/app:/var/www/html:ro - /docker/tt-rss/app:/var/www/html:ro
depends_on: depends_on:
- app - 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"