there's a lot of BS here

This commit is contained in:
Neuro 2024-05-02 01:46:15 -04:00
parent 98b9672ccf
commit 126257c494
2 changed files with 40 additions and 21 deletions

View File

@ -8,3 +8,12 @@ location ^~ /.well-known/acme-challenge/ {
break;
}
## End of configuration add by letsencrypt container
location /tt-rss/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8280/tt-rss/;
break;
}

View File

@ -1,39 +1,49 @@
services:
db:
image: mysql:8.0
restart: always
image: postgres:15-alpine
restart: unless-stopped
env_file:
- .env
environment:
MYSQL_DATABASE: freshrss
MYSQL_USER: ${DBUSER}
MYSQL_PASSWORD: ${DBPASS}
MYSQL_RANDOM_ROOT_PASSWORD: '1'
- POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
volumes:
- db:/var/lib/mysql
freshrss:
image: lscr.io/linuxserver/freshrss:latest
container_name: freshrss
- db:/var/lib/postgresql/data
app:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped
env_file:
- .env
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MYSQL_DB_HOST=db
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_DATABASE=freshrss
- MYSQL_USER=${DBUSER}
- MYSQL_PASSWORD=${DBPASS}
- VIRTUAL_HOST=rss.${DOMAIN}
# - LETSENCRYPT_HOST=rss.${DOMAIN}
# - LETSENCRYPT_EMAIL=${EMAIL}
# - LETSENCRYPT_TEST=true
ports:
- "8085:80"
- 8280:8280
expose:
- "8085"
- 8280
volumes:
- ./config:/config
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
depends_on:
- db
updater:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped
env_file:
- .env
volumes:
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
depends_on:
- app
command: /opt/tt-rss/updater.sh
volumes:
db:
app:
backups:
networks:
default:
name: nginx-proxy