Skip to main content

Add to truenas app market

This is popular software for selfhosted NAS setups (like Unraid, Proxmox), so would be nice to have moneymatter there in apps market.

https://apps.truenas.com/getting-started/contributing-to-apps/

While its not there I am running it as this custom yaml:

services:
  backend:
    depends_on:
      currency-rates-api:
        condition: service_healthy
      db:
        condition: service_healthy
      redis:
        condition: service_healthy
    environment:
      APPLICATION_DB_DATABASE: budget_tracker
      APPLICATION_DB_DIALECT: postgres
      APPLICATION_DB_HOST: db
      APPLICATION_DB_PASSWORD: XXXXXX
      APPLICATION_DB_PORT: '5432'
      APPLICATION_DB_USERNAME: budget_tracker
      APPLICATION_JWT_SECRET: XXXXXX
      APPLICATION_PORT: '8081'
      APPLICATION_REDIS_HOST: redis
      APP_SESSION_ID_SECRET: XXXX
      ATTACHMENTS_DIR: /app/packages/backend/data/attachments
      AUTH_ORIGIN: https://example.com
      AUTH_RP_ID: example.com
      BETTER_AUTH_SECRET: XXXXXXXX
      BETTER_AUTH_URL: https://example.com
      IS_SELF_HOST: 'true'
      SYSTEM_DEMO_DISABLED: 'true'
    healthcheck:
      interval: 30s
      retries: 3
      start_period: 60s
      test:
        - CMD
        - wget
        - '-q'
        - '--spider'
        - http://localhost:8081/health
      timeout: 10s
    image: letehaha/budget-tracker-be:latest
    restart: unless-stopped
    volumes:
      - attachments:/app/packages/backend/data/attachments
  currency-rates-api:
    environment:
      DATABASE_URL: sqlite:/app/data/currency_rates.db?mode=rwc
      DEFAULT_API_BASE: USD
      HOST: 0.0.0.0
      PORT: '8080'
      SEED_ON_STARTUP: 'true'
      SYNC_CRON: 0 0 8,12,16,20 * * *
      SYNC_ON_STARTUP: 'true'
    healthcheck:
      interval: 30s
      retries: 3
      start_period: 30s
      test:
        - CMD
        - wget
        - '-q'
        - '--spider'
        - http://localhost:8080/health
      timeout: 10s
    image: letehaha/currency-rates-api:latest
    restart: unless-stopped
    volumes:
      - rates:/app/data
  db:
    environment:
      POSTGRES_DB: budget_tracker
      POSTGRES_PASSWORD: XXXXXX
      POSTGRES_USER: budget_tracker
    healthcheck:
      interval: 10s
      retries: 5
      test:
        - CMD-SHELL
        - pg_isready -U budget_tracker -d budget_tracker
      timeout: 5s
    image: postgres:16
    restart: unless-stopped
    volumes:
      - db:/var/lib/postgresql/data
  frontend:
    depends_on:
      backend:
        condition: service_healthy
    environment:
      API_VER: /api/v1
      BACKEND_URL: http://backend:8081
      IS_SELF_HOST: 'true'
      LISTEN_PORT: '80'
      SKIP_LANDING: 'true'
    image: letehaha/budget-tracker-fe:latest
    ports:
      - '8080:80'
    restart: unless-stopped
  redis:
    healthcheck:
      interval: 10s
      retries: 5
      test:
        - CMD
        - redis-cli
        - ping
      timeout: 3s
    image: redis:7
    restart: unless-stopped
    volumes:
      - redis:/data
volumes:
  attachments: {}
  db: {}
  rates: {}
  redis: {}

Log in to comment and vote

No comments yet

Be the first to share your thoughts.