2021-06-16 11:38:05 +02:00
|
|
|
version: '3.4'
|
2020-10-28 05:21:19 +01:00
|
|
|
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:
|
2021-06-16 11:53:45 +02:00
|
|
|
image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest}
|
2020-10-28 05:21:19 +01:00
|
|
|
container_name: miniflux
|
|
|
|
depends_on:
|
2021-02-20 21:42:15 +01:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2020-10-28 05:21:19 +01:00
|
|
|
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
|
2021-02-20 21:42:15 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "miniflux"]
|
|
|
|
interval: 10s
|
|
|
|
start_period: 30s
|
2020-10-28 05:21:19 +01:00
|
|
|
volumes:
|
|
|
|
miniflux-db:
|
|
|
|
caddy_data:
|
|
|
|
caddy_config:
|