This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-04-23 14:53:05 +02:00
|
|
|
version: '2.4'
|
2021-01-06 08:51:52 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2021-05-08 02:02:40 +02:00
|
|
|
image: 'miniflux/miniflux:2.0.30'
|
2021-01-06 08:51:52 +01:00
|
|
|
restart: 'always'
|
|
|
|
|
|
|
|
depends_on:
|
2021-04-23 14:53:05 +02:00
|
|
|
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'
|
|
|
|
|
2021-01-06 08:51:52 +01:00
|
|
|
env_file:
|
2021-04-23 14:53:05 +02:00
|
|
|
- '.env'
|
|
|
|
environment:
|
|
|
|
# This is always the same, so we just put it here
|
|
|
|
- 'DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable'
|
2021-01-06 08:51:52 +01:00
|
|
|
networks:
|
|
|
|
- 'default'
|
|
|
|
- 'nginx'
|
|
|
|
|
|
|
|
db:
|
2021-05-14 23:00:58 +02:00
|
|
|
image: 'postgres:13.3-alpine'
|
2021-01-06 08:51:52 +01:00
|
|
|
restart: 'always'
|
|
|
|
|
2021-04-23 14:53:05 +02:00
|
|
|
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'
|
2021-01-06 08:51:52 +01:00
|
|
|
volumes:
|
|
|
|
- 'db-data:/var/lib/postgresql/data'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|