summaryrefslogtreecommitdiff
path: root/templates/miniflux-compose.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/miniflux-compose.yml.j2')
-rw-r--r--templates/miniflux-compose.yml.j231
1 files changed, 31 insertions, 0 deletions
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