2020-10-28 00:21:19 -04:00
|
|
|
version: '3.3'
|
|
|
|
services:
|
|
|
|
miniflux:
|
|
|
|
image: miniflux/miniflux:latest
|
|
|
|
container_name: miniflux
|
2021-02-20 15:42:15 -05:00
|
|
|
restart: always
|
2020-10-28 00:21:19 -04:00
|
|
|
ports:
|
|
|
|
- "80:8080"
|
|
|
|
depends_on:
|
2021-02-20 15:42:15 -05:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2020-10-28 00:21:19 -04:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
|
|
|
|
- RUN_MIGRATIONS=1
|
|
|
|
- CREATE_ADMIN=1
|
|
|
|
- ADMIN_USERNAME=admin
|
|
|
|
- ADMIN_PASSWORD=test123
|
2021-02-20 15:42:15 -05:00
|
|
|
- DEBUG=1
|
2021-02-23 00:47:30 -05:00
|
|
|
# Optional health check:
|
|
|
|
# healthcheck:
|
|
|
|
# test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
2020-10-28 00:21:19 -04:00
|
|
|
db:
|
|
|
|
image: postgres:latest
|
|
|
|
container_name: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=miniflux
|
|
|
|
- POSTGRES_PASSWORD=secret
|
|
|
|
volumes:
|
|
|
|
- miniflux-db:/var/lib/postgresql/data
|
2021-02-20 15:42:15 -05:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "miniflux"]
|
|
|
|
interval: 10s
|
|
|
|
start_period: 30s
|
2020-10-28 00:21:19 -04:00
|
|
|
volumes:
|
|
|
|
miniflux-db:
|