Freshrss: working docker-compose.yml with traefik and let's encrypt - if you want to add beside the current yml

Created on 27 Nov 2020  路  3Comments  路  Source: FreshRSS/FreshRSS

`version: "3"

services:

traefik:
image: "traefik:v2.3"
container_name: "newtraefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.[email protected]"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
- "8080:8080"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"

freshrss-db:
image: postgres:12-alpine
container_name: freshrss-db
hostname: freshrss-db
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=freshrss
- POSTGRES_PASSWORD=freshrss
- POSTGRES_DB=freshrss

freshrss-app:
image: freshrss/freshrss:latest
container_name: freshrss-app
hostname: freshrss-app
restart: unless-stopped
depends_on:
- freshrss-db
volumes:
- data:/var/www/FreshRSS/data
- extensions:/var/www/FreshRSS/extensions
environment:
- CRON_MIN=*/20
- TZ=Europe/Copenhagen
labels:
- "traefik.enable=true"
- "traefik.http.routers.freshrss.rule=Host(yourdomain.com)"
- "traefik.http.routers.freshrss.entrypoints=websecure"
- "traefik.http.routers.freshrss.tls.certresolver=myresolver"`

Docker

Most helpful comment

format the code
damnnnnn

All 3 comments

format the code
damnnnnn

its all good. take it or leave it. I am closing this.

its all good. take it or leave it. I am closing this.

it was time

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbnoimi picture mbnoimi  路  4Comments

Sp3r4z picture Sp3r4z  路  4Comments

reinvented picture reinvented  路  4Comments

cwldev picture cwldev  路  5Comments

Tealk picture Tealk  路  5Comments