added compose file and pinned app version
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
miniflux:
|
||||
image: miniflux/miniflux:2.3.1
|
||||
# ports:
|
||||
# - "80:8080"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable
|
||||
- RUN_MIGRATIONS=1
|
||||
- CREATE_ADMIN=1
|
||||
- ADMIN_USERNAME=erangel1
|
||||
- ADMIN_PASSWORD=password123
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
||||
db:
|
||||
image: postgres:18
|
||||
environment:
|
||||
- POSTGRES_USER=miniflux
|
||||
- POSTGRES_PASSWORD=miniflux
|
||||
- POSTGRES_DB=miniflux
|
||||
volumes:
|
||||
# You may have to adjust the volume path depending on the version of Postgres
|
||||
# Postgres 18 uses /var/lib/postgresql
|
||||
# Postgres 17 and below uses /var/lib/postgresql/data
|
||||
# See https://hub.docker.com/_/postgres#pgdata
|
||||
- miniflux-db:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "miniflux"]
|
||||
interval: 10s
|
||||
start_period: 30s
|
||||
volumes:
|
||||
miniflux-db:
|
||||
Reference in New Issue
Block a user