Skip to content

Commit

Permalink
Merge pull request #1195 from bernabedev/canary
Browse files Browse the repository at this point in the history
feat(template): added maybe finance
  • Loading branch information
Siumauricio authored Jan 26, 2025
2 parents 074e3b6 + b961032 commit bcb86f3
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
17 changes: 17 additions & 0 deletions apps/dokploy/public/templates/maybe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions apps/dokploy/templates/maybe/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
app:
image: ghcr.io/maybe-finance/maybe:sha-68c570eed8810fd59b5b33cca51bbad5eabb4cb4
restart: unless-stopped
volumes:
- ../files/uploads:/app/uploads
environment:
DATABASE_URL: postgresql://maybe:maybe@db:5432/maybe
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
SELF_HOSTED: true
SYNTH_API_KEY: ${SYNTH_API_KEY}
RAILS_FORCE_SSL: "false"
RAILS_ASSUME_SSL: "false"
GOOD_JOB_EXECUTION_MODE: async
depends_on:
db:
condition: service_healthy

db:
image: postgres:16
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- dokploy-network
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: maybe
POSTGRES_USER: maybe
POSTGRES_PASSWORD: maybe

volumes:
db-data:
43 changes: 43 additions & 0 deletions apps/dokploy/templates/maybe/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import {
type DomainSchema,
type Schema,
type Template,
generateBase64,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);
const secretKeyBase = generateBase64(64);
const synthApiKey = generateBase64(32);

const domains: DomainSchema[] = [
{
host: mainDomain,
port: 3000,
serviceName: "app",
},
];

const envs = [
`SECRET_KEY_BASE=${secretKeyBase}`,
"SELF_HOSTED=true",
`SYNTH_API_KEY=${synthApiKey}`,
"RAILS_FORCE_SSL=false",
"RAILS_ASSUME_SSL=false",
"GOOD_JOB_EXECUTION_MODE=async",
];

const mounts: Template["mounts"] = [
{
filePath: "./uploads",
content: "This is where user uploads will be stored",
},
];

return {
envs,
mounts,
domains,
};
}
16 changes: 15 additions & 1 deletion apps/dokploy/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,21 @@ export const templates: TemplateData[] = [
load: () => import("./homarr/index").then((m) => m.generate),
},
{
id: "maybe",
name: "Maybe",
version: "latest",
description:
"Maybe is a self-hosted finance tracking application designed to simplify budgeting and expenses.",
logo: "maybe.svg",
links: {
github: "https://github.com/maybe-finance/maybe",
website: "https://maybe.finance/",
docs: "https://docs.maybe.finance/",
},
tags: ["finance", "self-hosted"],
load: () => import("./maybe/index").then((m) => m.generate),
},
{
id: "spacedrive",
name: "Spacedrive",
version: "latest",
Expand Down Expand Up @@ -1369,6 +1384,5 @@ export const templates: TemplateData[] = [
},
tags: ["file", "webdav", "storage"],
load: () => import("./alist/index").then((m) => m.generate),

},
];

0 comments on commit bcb86f3

Please sign in to comment.