diff --git a/blueprints/budget-board/docker-compose.yml b/blueprints/budget-board/docker-compose.yml new file mode 100644 index 00000000..80ec9511 --- /dev/null +++ b/blueprints/budget-board/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3.8" +services: + budget-board-server: + restart: unless-stopped + image: ghcr.io/teelur/budget-board/server:release + + environment: + Logging__LogLevel__Default: Information + CLIENT_URL: http://budget-board-client:6253 + POSTGRES_HOST: budget-board-db + POSTGRES_DATABASE: budgetboard + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + AUTO_UPDATE_DB: true + + depends_on: + budget-board-db: + condition: service_healthy + budget-board-client: + restart: unless-stopped + image: ghcr.io/teelur/budget-board/client:release + environment: + VITE_API_URL: http://budget-board-server + PORT: 6253 + ports: + - 6253 + depends_on: + - budget-board-server + budget-board-db: + image: postgres:16 + restart: unless-stopped + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: budgetboard + volumes: + - "../files/db-data:/var/lib/postgresql/data" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres -d budgetboard"] + interval: 5s + timeout: 5s + retries: 5 diff --git a/blueprints/budget-board/image.png b/blueprints/budget-board/image.png new file mode 100644 index 00000000..2c51aaaf Binary files /dev/null and b/blueprints/budget-board/image.png differ diff --git a/blueprints/budget-board/template.toml b/blueprints/budget-board/template.toml new file mode 100644 index 00000000..6f09e75d --- /dev/null +++ b/blueprints/budget-board/template.toml @@ -0,0 +1,20 @@ +[variables] +main_domain = "${domain}" +postgres_password = "${password:32}" + +[config] +[[config.domains]] +serviceName = "budget-board-client" +port = 6253 +host = "${main_domain}" +path = "/" + + +[config.env] +POSTGRES_PASSWORD = "${postgres_password}" + + +[[config.mounts]] +source = "../files/db-data" +target = "/var/lib/postgresql/data" +type = "bind" \ No newline at end of file diff --git a/meta.json b/meta.json index b12beba3..b188ea3c 100644 --- a/meta.json +++ b/meta.json @@ -765,6 +765,25 @@ "automation" ] }, + { + "id": "budget-board", + "name": "Budget Board", + "version": "release", + "description": "Self-hosted budgeting app with a web UI and a server backed by PostgreSQL.", + "logo": "image.png", + "links": { + "github": "https://github.com/teelur/budget-board", + "website": "https://budgetboard.net/", + "docs": "https://budgetboard.net/" + }, + "tags": [ + "finance", + "postgres", + "self-hosted", + "docker", + "compose" + ] + }, { "id": "budibase", "name": "Budibase",