final touches for beta skymoney (at least i think)

This commit is contained in:
2026-01-18 00:00:44 -06:00
parent 4eae966f96
commit f4f0ae5df2
161 changed files with 26016 additions and 1966 deletions

View File

@@ -1,19 +1,18 @@
version: "3.9"
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: skymoney
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: ${POSTGRES_DB:-skymoney}
POSTGRES_USER: ${POSTGRES_USER:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-app}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U app -d skymoney"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-app} -d ${POSTGRES_DB:-skymoney}"]
interval: 5s
timeout: 3s
retries: 10
@@ -23,10 +22,14 @@ services:
context: ./api
dockerfile: Dockerfile
environment:
NODE_ENV: production
PORT: "8080"
DATABASE_URL: postgres://app:app@postgres:5432/skymoney
CORS_ORIGIN: http://localhost:5173
NODE_ENV: ${NODE_ENV:-development}
PORT: ${PORT:-8080}
DATABASE_URL: ${DATABASE_URL:-postgres://app:app@postgres:5432/skymoney}
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:5173}
SEED_DEFAULT_BUDGET: ${SEED_DEFAULT_BUDGET:-0}
AUTH_DISABLED: ${AUTH_DISABLED:-false}
JWT_SECRET: ${JWT_SECRET:-dev-jwt-secret-change-me}
COOKIE_SECRET: ${COOKIE_SECRET:-dev-cookie-secret-change-me}
depends_on:
- postgres
@@ -57,5 +60,23 @@ services:
timeout: 3s
retries: 10
scheduler:
build:
context: ./api
dockerfile: Dockerfile
command: ["node", "dist/worker/rollover.js"]
environment:
NODE_ENV: ${NODE_ENV:-production}
DATABASE_URL: ${DATABASE_URL:-postgres://app:app@postgres:5432/skymoney}
ROLLOVER_SCHEDULE_CRON: "${ROLLOVER_SCHEDULE_CRON:-0 6 * * *}"
restart: unless-stopped
depends_on:
- postgres
healthcheck:
test: ["CMD-SHELL", "node -e \"process.exit(0)\""]
interval: 60s
timeout: 5s
retries: 3
volumes:
pgdata: