version: '2.4' services: app: image: 'miniflux/miniflux:2.0.29' restart: 'always' depends_on: 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' env_file: - '.env' environment: # This is always the same, so we just put it here - 'DATABASE_URL=postgres://miniflux:miniflux@db/miniflux?sslmode=disable' networks: - 'default' - 'nginx' db: image: 'postgres:13.2-alpine' restart: 'always' 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' volumes: - 'db-data:/var/lib/postgresql/data' networks: nginx: external: true volumes: db-data: