From e5c01220077397424b92be151ac7c915bf20b0dd Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Wed, 6 Jan 2021 08:51:52 +0100 Subject: [PATCH] Added miniflux config --- miniflux/README.md | 0 miniflux/db.env.example | 3 +++ miniflux/docker-compose.yml | 34 ++++++++++++++++++++++++++++++++++ miniflux/miniflux.env.example | 8 ++++++++ 4 files changed, 45 insertions(+) create mode 100644 miniflux/README.md create mode 100644 miniflux/db.env.example create mode 100644 miniflux/docker-compose.yml create mode 100644 miniflux/miniflux.env.example diff --git a/miniflux/README.md b/miniflux/README.md new file mode 100644 index 0000000..e69de29 diff --git a/miniflux/db.env.example b/miniflux/db.env.example new file mode 100644 index 0000000..79ebaff --- /dev/null +++ b/miniflux/db.env.example @@ -0,0 +1,3 @@ +POSTGRES_DB=miniflux +POSTGRES_USER=miniflux +POSTGRES_PASSWORD=changeme diff --git a/miniflux/docker-compose.yml b/miniflux/docker-compose.yml new file mode 100644 index 0000000..4a59057 --- /dev/null +++ b/miniflux/docker-compose.yml @@ -0,0 +1,34 @@ +version: '3.5' + +services: + app: + image: 'miniflux/miniflux:latest' + restart: 'always' + + depends_on: + - 'db' + env_file: + - 'miniflux.env' + labels: + - 'com.centurylinklabs.watchtower.enable=true' + networks: + - 'default' + - 'nginx' + + db: + image: 'postgres:13-alpine' + restart: 'always' + + env_file: + - 'db.env' + labels: + - 'com.centurylinklabs.watchtower.enable=true' + volumes: + - 'db-data:/var/lib/postgresql/data' + +networks: + nginx: + external: true + +volumes: + db-data: diff --git a/miniflux/miniflux.env.example b/miniflux/miniflux.env.example new file mode 100644 index 0000000..161f6c8 --- /dev/null +++ b/miniflux/miniflux.env.example @@ -0,0 +1,8 @@ +# Database settings +DATABASE_URL=postgres://miniflux:changeme@db/miniflux?sslmode=disable +RUN_MIGRATIONS=1 + +# Auto-create admin user +CREATE_ADMIN=1 +ADMIN_USERNAME=admin +ADMIN_PASSWORD=changeme