From 15c0fc97c2fb74a2250c7646b8d2e3090777c2ae Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 2 Jul 2023 13:47:00 -0700 Subject: [PATCH] Init commafeed RSS reader --- jafner-net/config/commafeed/.env | 1 + jafner-net/config/commafeed/commafeed.env | 3 ++ .../config/commafeed/docker-compose.yml | 45 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 jafner-net/config/commafeed/.env create mode 100644 jafner-net/config/commafeed/commafeed.env create mode 100644 jafner-net/config/commafeed/docker-compose.yml diff --git a/jafner-net/config/commafeed/.env b/jafner-net/config/commafeed/.env new file mode 100644 index 0000000..b679de7 --- /dev/null +++ b/jafner-net/config/commafeed/.env @@ -0,0 +1 @@ +DOCKER_DATA=/mnt/nas/AppData/commafeed \ No newline at end of file diff --git a/jafner-net/config/commafeed/commafeed.env b/jafner-net/config/commafeed/commafeed.env new file mode 100644 index 0000000..68d6b45 --- /dev/null +++ b/jafner-net/config/commafeed/commafeed.env @@ -0,0 +1,3 @@ +CF_DATABASE_DRIVERCLASS=org.postgresql.Driver +CF_DATABASE_URL=jdbc:postgresql://postgresql:5432/commafeed +CF_DATABASE_USER=commafeed diff --git a/jafner-net/config/commafeed/docker-compose.yml b/jafner-net/config/commafeed/docker-compose.yml new file mode 100644 index 0000000..cf32276 --- /dev/null +++ b/jafner-net/config/commafeed/docker-compose.yml @@ -0,0 +1,45 @@ +version: '3' +services: + send: + image: athou/commafeed:latest + container_name: commafeed_commafeed + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + restart: "no" + networks: + - commafeed + - web + volumes: + - ${DOCKER_DATA}/commafeed:/commafeed/data + env_file: + - commafeed.env + - commafeed_secrets.env + labels: + - traefik.http.routers.commafeed.rule=Host(`rss.jafner.net`) + - traefik.http.routers.commafeed.tls.certresolver=lets-encrypt + - traefik.http.routers.commafeed.tls.options=tls12@file + - traefik.http.routers.commafeed.middlewares=securityheaders@file + - traefik.http.services.commafeed.loadbalancer.server.port=8082 + + postgres: + image: 'redis:alpine' + container_name: commafeed_postgres + networks: + - commafeed + restart: "no" + volumes: + - ${DOCKER_DATA}/postgres:/data + env_file: + - postgres.env + - postgres_secrets.env + +networks: + web: + external: true + commafeed: \ No newline at end of file