MasterpieceDockerCompose/miniflux/docker-compose.yml

41 lines
979 B
YAML

version: "3.8"
services:
db:
container_name: miniflux-db
image: postgres:13-alpine
security_opt:
- no-new-privileges:true
networks:
- custom-bridge
restart: always
env_file: .env
volumes:
- ${POSTGRES_DATA:-/home/docker/miniflux/db}:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 10s
feeder:
container_name: miniflux
image: ghcr.io/miniflux/miniflux
security_opt:
- no-new-privileges:true
networks:
- custom-bridge
restart: unless-stopped
depends_on:
- db
ports:
- ${MINIFLUX_WEBUI_PORT:-8080}:8080
env_file: .env
healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
networks:
custom-bridge:
name: custom-bridge
driver: bridge