From c29775050c43e2fa950dbc6bc0475346b064d263 Mon Sep 17 00:00:00 2001 From: whitney Date: Tue, 2 Sep 2025 15:26:28 -0700 Subject: [PATCH] Add flatnotes --- productivity/flatnotes/.env.example | 6 ++++++ productivity/flatnotes/.gitignore | 1 + productivity/flatnotes/README.md | 0 productivity/flatnotes/docker-compose.yml | 21 +++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 productivity/flatnotes/.env.example create mode 100644 productivity/flatnotes/.gitignore create mode 100644 productivity/flatnotes/README.md create mode 100644 productivity/flatnotes/docker-compose.yml diff --git a/productivity/flatnotes/.env.example b/productivity/flatnotes/.env.example new file mode 100644 index 0000000..ddf0b80 --- /dev/null +++ b/productivity/flatnotes/.env.example @@ -0,0 +1,6 @@ +PUID=1000 +PGID=1000 +FLATNOTES_AUTH_TYPE="password" +FLATNOTES_USERNAME="user" +FLATNOTES_PASSWORD="password" +FLATNOTES_SECRET_KEY="aLongRandomSeriesOfCharacters" diff --git a/productivity/flatnotes/.gitignore b/productivity/flatnotes/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/productivity/flatnotes/.gitignore @@ -0,0 +1 @@ +.env diff --git a/productivity/flatnotes/README.md b/productivity/flatnotes/README.md new file mode 100644 index 0000000..e69de29 diff --git a/productivity/flatnotes/docker-compose.yml b/productivity/flatnotes/docker-compose.yml new file mode 100644 index 0000000..ce462e6 --- /dev/null +++ b/productivity/flatnotes/docker-compose.yml @@ -0,0 +1,21 @@ +networks: + traefik: + external: true + +services: + flatnotes: + container_name: flatnotes + image: dullage/flatnotes:latest + networks: + - traefik + env_file: + - .env + volumes: + - "/pwspool/software/flatnotes:/data" + - "/pwspool/software/flatnotes/index" + restart: unless-stopped + labels: + - traefik.http.routers.flatnotes.rule=Host(`flatnotes.whitney.rip`) + - traefik.http.routers.flatnotes.tls=true + - traefik.http.routers.flatnotes.tls.certresolver=lets-encrypt + - traefik.http.services.flatnotes.loadbalancer.server.port=8080