From af83f5fac91bb84ed4f44d272004fdd4f160e0aa Mon Sep 17 00:00:00 2001 From: erangel1 Date: Tue, 16 Jun 2026 15:39:40 +0000 Subject: [PATCH] added compose file and pinned app version --- docker-compose.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e6390bc --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,34 @@ +services: + miniflux: + image: miniflux/miniflux:2.3.1 + # ports: + # - "80:8080" + depends_on: + db: + condition: service_healthy + environment: + - DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable + - RUN_MIGRATIONS=1 + - CREATE_ADMIN=1 + - ADMIN_USERNAME=erangel1 + - ADMIN_PASSWORD=password123 + healthcheck: + test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"] + db: + image: postgres:18 + environment: + - POSTGRES_USER=miniflux + - POSTGRES_PASSWORD=miniflux + - POSTGRES_DB=miniflux + volumes: + # You may have to adjust the volume path depending on the version of Postgres + # Postgres 18 uses /var/lib/postgresql + # Postgres 17 and below uses /var/lib/postgresql/data + # See https://hub.docker.com/_/postgres#pgdata + - miniflux-db:/var/lib/postgresql + healthcheck: + test: ["CMD", "pg_isready", "-U", "miniflux"] + interval: 10s + start_period: 30s +volumes: + miniflux-db: \ No newline at end of file