commit efa61e2c3b2db0b31215f2bbc519ac4513393c07 Author: altescy Date: Tue Nov 3 00:40:12 2020 +0900 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/README.md b/README.md new file mode 100644 index 0000000..0f162be --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +miniflux-docker +=============== + +Docker configs for [Miniflux](https://miniflux.app/). + + +### Installation + +``` +$ cat << EOF > .env +MINIFLUX_HTTP_PORT=8080 +MINFLUX_ADMIN_USERNAME=user +MINFLUX_ADMIN_PASSWORD=password +$ docker-compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ceb4eec --- /dev/null +++ b/docker-compose.yml @@ -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: