1
0
Fork 0
miniflux/contrib/docker-compose/basic.yml

36 lines
910 B
YAML
Raw Normal View History

2020-10-28 00:21:19 -04:00
services:
miniflux:
image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest}
2020-10-28 00:21:19 -04:00
container_name: miniflux
restart: always
2020-10-28 00:21:19 -04:00
ports:
- "80:8080"
depends_on:
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
- DEBUG=1
# Optional health check:
# healthcheck:
# test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
2020-10-28 00:21:19 -04:00
db:
image: postgres:15
2020-10-28 00:21:19 -04:00
container_name: postgres
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=secret
2023-12-31 07:44:30 -05:00
- POSTGRES_DB=miniflux
2020-10-28 00:21:19 -04:00
volumes:
- miniflux-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
2020-10-28 00:21:19 -04:00
volumes:
miniflux-db: