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: db:
image: 'postgres:13.2-alpine' image: 'postgres:13.2-alpine'
restart: 'always' restart: 'always'
healthcheck: healthcheck:
test: 'pg_isready -U firefly' test: 'pg_isready -U firefly'
interval: '10s' interval: '10s'

View File

@ -1,5 +1,4 @@
# Database settings # Database settings
DATABASE_URL=postgres://miniflux:changeme@db/miniflux?sslmode=disable
RUN_MIGRATIONS=1 RUN_MIGRATIONS=1
# Auto-create admin user # 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: services:
app: app:
image: 'miniflux/miniflux:latest' image: 'miniflux/miniflux:2.0.29'
restart: 'always' restart: 'always'
depends_on: 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: env_file:
- 'miniflux.env' - '.env'
labels: environment:
- 'com.centurylinklabs.watchtower.enable=true' # This is always the same, so we just put it here
- 'DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable'
networks: networks:
- 'default' - 'default'
- 'nginx' - 'nginx'
db: db:
image: 'postgres:13-alpine' image: 'postgres:13.2-alpine'
restart: 'always' restart: 'always'
env_file: healthcheck:
- 'db.env' test: 'pg_isready -U miniflux'
labels: interval: '10s'
- 'com.centurylinklabs.watchtower.enable=true' timeout: '5s'
retries: 5
start_period: '0s'
environment:
- 'POSTGRES_DB=miniflux'
- 'POSTGRES_USER=miniflux'
- 'POSTGRES_PASSWORD=miniflux'
volumes: volumes:
- 'db-data:/var/lib/postgresql/data' - 'db-data:/var/lib/postgresql/data'