From abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 20 Jul 2024 16:20:13 -0500 Subject: Initial commit --- templates/miniflux-compose.yml.j2 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 templates/miniflux-compose.yml.j2 (limited to 'templates/miniflux-compose.yml.j2') diff --git a/templates/miniflux-compose.yml.j2 b/templates/miniflux-compose.yml.j2 new file mode 100644 index 0000000..26fd829 --- /dev/null +++ b/templates/miniflux-compose.yml.j2 @@ -0,0 +1,31 @@ +services: + miniflux: + image: miniflux/miniflux:latest + restart: always + depends_on: + miniflux_db: + condition: service_healthy + environment: +{% for key, value in miniflux_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + labels: +{% with router_name="miniflux", host_prefix="miniflux", container_port="8080" %} +{% include "util/traefik_labels.txt.j2" %} +{% endwith %} + + miniflux_db: + image: postgres:15 + restart: always + environment: +{% for key, value in miniflux_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + volumes: + - ./data/miniflux-db:/var/lib/postgresql/data + healthcheck: + test: ["CMD", "pg_isready", "-U", "miniflux"] + interval: 60s + start_period: 30s -- cgit v1.2.3