|
@ -0,0 +1,32 @@ |
|
|
|
|
|
version: '3' |
|
|
|
|
|
services: |
|
|
|
|
|
waitfordb: |
|
|
|
|
|
image: dadarek/wait-for-dependencies |
|
|
|
|
|
depends_on: |
|
|
|
|
|
- db |
|
|
|
|
|
command: db:5432 |
|
|
|
|
|
|
|
|
|
|
|
miniflux: |
|
|
|
|
|
image: miniflux/miniflux:latest |
|
|
|
|
|
ports: |
|
|
|
|
|
- "${MINIFLUX_HTTP_PORT}:8080" |
|
|
|
|
|
depends_on: |
|
|
|
|
|
- db |
|
|
|
|
|
- waitfordb |
|
|
|
|
|
environment: |
|
|
|
|
|
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable |
|
|
|
|
|
- RUN_MIGRATIONS=1 |
|
|
|
|
|
- CREATE_ADMIN=1 |
|
|
|
|
|
- ADMIN_USERNAME=${MINFLUX_ADMIN_USERNAME} |
|
|
|
|
|
- ADMIN_PASSWORD=${MINFLUX_ADMIN_PASSWORD} |
|
|
|
|
|
|
|
|
|
|
|
db: |
|
|
|
|
|
image: postgres:12.3-alpine |
|
|
|
|
|
environment: |
|
|
|
|
|
- POSTGRES_USER=miniflux |
|
|
|
|
|
- POSTGRES_PASSWORD=secret |
|
|
|
|
|
volumes: |
|
|
|
|
|
- miniflux-db:/var/lib/postgresql/data |
|
|
|
|
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
miniflux-db: |