2020-10-28 00:21:19 -04:00
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
image: "traefik:v2.3"
|
|
|
|
container_name: traefik
|
|
|
|
command:
|
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.websecure.address=:443"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.email=postmaster@example.com"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
|
|
|
|
depends_on:
|
|
|
|
- miniflux
|
|
|
|
ports:
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- "./letsencrypt:/letsencrypt"
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
miniflux:
|
2021-06-16 05:53:45 -04:00
|
|
|
image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest}
|
2020-10-28 00:21:19 -04:00
|
|
|
container_name: miniflux
|
|
|
|
depends_on:
|
2023-02-19 09:03:32 -05:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2020-10-28 00:21:19 -04:00
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
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
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.miniflux.rule=Host(`miniflux.example.org`)"
|
|
|
|
- "traefik.http.routers.miniflux.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.miniflux.tls.certresolver=myresolver"
|
|
|
|
db:
|
2022-11-13 17:03:11 -05:00
|
|
|
image: postgres:15
|
2020-10-28 00:21:19 -04:00
|
|
|
container_name: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=miniflux
|
|
|
|
- POSTGRES_PASSWORD=secret
|
|
|
|
volumes:
|
|
|
|
- miniflux-db:/var/lib/postgresql/data
|
2021-02-20 15:42:15 -05:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "miniflux"]
|
|
|
|
interval: 10s
|
|
|
|
start_period: 30s
|
2020-10-28 00:21:19 -04:00
|
|
|
volumes:
|
|
|
|
miniflux-db:
|