95 lines
2.2 KiB
YAML
95 lines
2.2 KiB
YAML
---
|
|
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:12-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=${TTRSS_DB_USER}
|
|
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
|
|
- POSTGRES_DB=${TTRSS_DB_NAME}
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
|
|
app:
|
|
image: cthulhoo/ttrss-fpm-pgsql-static
|
|
restart: unless-stopped
|
|
environment:
|
|
- TTRSS_DB_USER=${TTRSS_DB_USER}
|
|
- TTRSS_DB_PASS=${TTRSS_DB_PASS}
|
|
- TTRSS_DB_NAME=${TTRSS_DB_NAME}
|
|
- OWNER_UID=${OWNER_UID}
|
|
- OWNER_GID=${OWNER_GID}
|
|
- TTRSS_SELF_URL_PATH=${TTRSS_SELF_URL_PATH}
|
|
- HTTP_PORT=${HTTP_PORT}
|
|
volumes:
|
|
- app:/var/www/html
|
|
- ./config.d:/opt/tt-rss/config.d:ro
|
|
depends_on:
|
|
- db
|
|
|
|
backups:
|
|
image: cthulhoo/ttrss-fpm-pgsql-static
|
|
restart: unless-stopped
|
|
environment:
|
|
- TTRSS_DB_USER=${TTRSS_DB_USER}
|
|
- TTRSS_DB_PASS=${TTRSS_DB_PASS}
|
|
- TTRSS_DB_NAME=${TTRSS_DB_NAME}
|
|
- OWNER_UID=${OWNER_UID}
|
|
- OWNER_GID=${OWNER_GID}
|
|
- TTRSS_SELF_URL_PATH=${TTRSS_SELF_URL_PATH}
|
|
- HTTP_PORT=${HTTP_PORT}
|
|
volumes:
|
|
- backups:/backups
|
|
- app:/var/www/html
|
|
depends_on:
|
|
- db
|
|
command: /opt/tt-rss/dcron.sh -f
|
|
|
|
updater:
|
|
image: cthulhoo/ttrss-fpm-pgsql-static
|
|
restart: unless-stopped
|
|
environment:
|
|
- TTRSS_DB_USER=${TTRSS_DB_USER}
|
|
- TTRSS_DB_PASS=${TTRSS_DB_PASS}
|
|
- TTRSS_DB_NAME=${TTRSS_DB_NAME}
|
|
- OWNER_UID=${OWNER_UID}
|
|
- OWNER_GID=${OWNER_GID}
|
|
- TTRSS_SELF_URL_PATH=${TTRSS_SELF_URL_PATH}
|
|
- HTTP_PORT=${HTTP_PORT}
|
|
volumes:
|
|
- app:/var/www/html
|
|
- ./config.d:/opt/tt-rss/config.d:ro
|
|
depends_on:
|
|
- app
|
|
command: /opt/tt-rss/updater.sh
|
|
|
|
web-nginx:
|
|
image: cthulhoo/ttrss-web-nginx:latest
|
|
restart: unless-stopped
|
|
# ports:
|
|
# - ${HTTP_PORT}:80
|
|
volumes:
|
|
- app:/var/www/html:ro
|
|
depends_on:
|
|
- app
|
|
networks:
|
|
- proxy
|
|
- default
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.routers.ttrss.entrypoints=websecure"
|
|
- "traefik.http.routers.ttrss.rule=Host(${HOST})"
|
|
|
|
volumes:
|
|
db:
|
|
app:
|
|
certs:
|
|
backups:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|