mirror of
https://github.com/miniflux/v2.git
synced 2024-09-08 20:39:20 +02:00
- Add new cli argument: -healthcheck - Add HEALTHCHECK instruction to Dockerfile - Update Docker Compose examples
44 lines
1021 B
YAML
44 lines
1021 B
YAML
version: '3.3'
|
|
services:
|
|
caddy:
|
|
image: caddy:2
|
|
container_name: caddy
|
|
depends_on:
|
|
- miniflux
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
miniflux:
|
|
image: miniflux/miniflux:latest
|
|
container_name: miniflux
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
environment:
|
|
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
|
|
- RUN_MIGRATIONS=1
|
|
- CREATE_ADMIN=1
|
|
- ADMIN_USERNAME=admin
|
|
- ADMIN_PASSWORD=test123
|
|
- BASE_URL=https://miniflux.example.org
|
|
db:
|
|
image: postgres:latest
|
|
container_name: postgres
|
|
environment:
|
|
- POSTGRES_USER=miniflux
|
|
- POSTGRES_PASSWORD=secret
|
|
volumes:
|
|
- miniflux-db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "miniflux"]
|
|
interval: 10s
|
|
start_period: 30s
|
|
volumes:
|
|
miniflux-db:
|
|
caddy_data:
|
|
caddy_config:
|