diff --git a/miniflux/README.md b/miniflux/README.md new file mode 100644 index 0000000..e69de29 diff --git a/miniflux/db.env.example b/miniflux/db.env.example new file mode 100644 index 0000000..79ebaff --- /dev/null +++ b/miniflux/db.env.example @@ -0,0 +1,3 @@ +POSTGRES_DB=miniflux +POSTGRES_USER=miniflux +POSTGRES_PASSWORD=changeme diff --git a/miniflux/docker-compose.yml b/miniflux/docker-compose.yml new file mode 100644 index 0000000..4a59057 --- /dev/null +++ b/miniflux/docker-compose.yml @@ -0,0 +1,34 @@ +version: '3.5' + +services: + app: + image: 'miniflux/miniflux:latest' + restart: 'always' + + depends_on: + - 'db' + env_file: + - 'miniflux.env' + labels: + - 'com.centurylinklabs.watchtower.enable=true' + networks: + - 'default' + - 'nginx' + + db: + image: 'postgres:13-alpine' + restart: 'always' + + env_file: + - 'db.env' + labels: + - 'com.centurylinklabs.watchtower.enable=true' + volumes: + - 'db-data:/var/lib/postgresql/data' + +networks: + nginx: + external: true + +volumes: + db-data: diff --git a/miniflux/miniflux.env.example b/miniflux/miniflux.env.example new file mode 100644 index 0000000..161f6c8 --- /dev/null +++ b/miniflux/miniflux.env.example @@ -0,0 +1,8 @@ +# Database settings +DATABASE_URL=postgres://miniflux:changeme@db/miniflux?sslmode=disable +RUN_MIGRATIONS=1 + +# Auto-create admin user +CREATE_ADMIN=1 +ADMIN_USERNAME=admin +ADMIN_PASSWORD=changeme