From 2298ac99711ee031d421dd5d6eb55edea1f31a6c Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Tue, 22 Oct 2024 16:39:21 +0000 Subject: [PATCH] Add News --- news/docker-compose.yaml | 55 ++++++++++++++++++++++++++++++++++++++++ start-all.sh | 1 + 2 files changed, 56 insertions(+) create mode 100644 news/docker-compose.yaml diff --git a/news/docker-compose.yaml b/news/docker-compose.yaml new file mode 100644 index 0000000..19c4ba8 --- /dev/null +++ b/news/docker-compose.yaml @@ -0,0 +1,55 @@ +services: + + miniflux: + image: miniflux/miniflux:${MINIFLUX_VERSION} + depends_on: + db: + condition: service_healthy + networks: + - news + - web + environment: + - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}?sslmode=disable + - RUN_MIGRATIONS=1 + - CREATE_ADMIN=1 + - ADMIN_USERNAME=${ADMIN_USER} + - ADMIN_PASSWORD=${ADMIN_PASSWORD} + - BASE_URL=https://news.${DOMAIN} + - POLLING_FREQUENCY=15 # minutes + # - LOG_LEVEL=debug + healthcheck: + test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"] + labels: + - "traefik.enable=true" + - "traefik.http.routers.news.rule=Host(`news.${DOMAIN}`)" + - "traefik.http.routers.news.entrypoints=websecure" + - "traefik.http.routers.news.tls.certresolver=netcup" + - "traefik.http.routers.news.tls.options=intermediate@file" + - "traefik.http.services.news.loadbalancer.server.port=8080" + - "docker.group=news" + + + db: + image: postgres:${POSTGRES_VERSION} + restart: unless-stopped + environment: + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=${POSTGRES_DB} + networks: + - news + volumes: + - ${VOLUMES_PATH}/news/db:/var/lib/postgresql/data + healthcheck: + test: ["CMD", "pg_isready", "-U", "miniflux"] + interval: 10s + start_period: 30s + labels: + - "docker.group=news" + + +networks: + news: + web: + external: true + diff --git a/start-all.sh b/start-all.sh index 1c4971e..7d0ea6e 100755 --- a/start-all.sh +++ b/start-all.sh @@ -13,3 +13,4 @@ up www; up firefoxsync; up push; up rustdesk; +up news;