Improved miniflux config

pull/10/head
Jef Roosens 2021-04-23 14:53:05 +02:00
parent 92094ff5fc
commit e483ab0d7a
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
4 changed files with 28 additions and 15 deletions

View File

@ -32,6 +32,7 @@ services:
db:
image: 'postgres:13.2-alpine'
restart: 'always'
healthcheck:
test: 'pg_isready -U firefly'
interval: '10s'

View File

@ -1,5 +1,4 @@
# Database settings
DATABASE_URL=postgres://miniflux:changeme@db/miniflux?sslmode=disable
RUN_MIGRATIONS=1
# Auto-create admin user

View File

@ -1,3 +0,0 @@
POSTGRES_DB=miniflux
POSTGRES_USER=miniflux
POSTGRES_PASSWORD=changeme

View File

@ -1,28 +1,44 @@
version: '3.5'
version: '2.4'
services:
app:
image: 'miniflux/miniflux:latest'
image: 'miniflux/miniflux:2.0.29'
restart: 'always'
depends_on:
- 'db'
db:
condition: 'service_healthy'
healthcheck:
test: 'wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1'
interval: '1m'
timeout: '5s'
retries: 3
start_period: '5s'
env_file:
- 'miniflux.env'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
- '.env'
environment:
# This is always the same, so we just put it here
- 'DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable'
networks:
- 'default'
- 'nginx'
db:
image: 'postgres:13-alpine'
image: 'postgres:13.2-alpine'
restart: 'always'
env_file:
- 'db.env'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
healthcheck:
test: 'pg_isready -U miniflux'
interval: '10s'
timeout: '5s'
retries: 5
start_period: '0s'
environment:
- 'POSTGRES_DB=miniflux'
- 'POSTGRES_USER=miniflux'
- 'POSTGRES_PASSWORD=miniflux'
volumes:
- 'db-data:/var/lib/postgresql/data'