56c3f1193f
'start_period' for 'healthchecks' was added in Compose file version 3.4, https://docs.docker.com/compose/compose-file/compose-versioning/#version-34 Bump docker-compose files' versions from 3.3 to 3.4 Without this, docker-compose (1.25 at least) returns ERROR: The Compose file './contrib/docker-compose/caddy.yml' is invalid because: services.db.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
35 lines
881 B
YAML
35 lines
881 B
YAML
version: '3.4'
|
|
services:
|
|
miniflux:
|
|
image: miniflux/miniflux:latest
|
|
container_name: miniflux
|
|
restart: always
|
|
ports:
|
|
- "80:8080"
|
|
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
|
|
- DEBUG=1
|
|
# Optional health check:
|
|
# healthcheck:
|
|
# test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
|
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:
|