summaryrefslogtreecommitdiff
path: root/templates/miniflux-compose.yml.j2
blob: 26fd82954c8e870024a6640c13e8e206d60af5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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